/* Basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar h1 {
    font-size: 1.5rem;
    margin: 0;
}

.navbar-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.navbar-mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.75rem;
}

.login-subtitle {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 0;
}

.login-form {
    margin-top: 1.5rem;
}

.form-group input::placeholder {
    color: #95a5a6;
    opacity: 0.7;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

/* Dashboard */
.dashboard {
    margin-top: 2rem;
}

.dashboard-welcome {
    margin-bottom: 2.5rem;
}

.dashboard-welcome h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

.dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e8ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.dashboard-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.dashboard-card p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95rem;
}

/* Trainer Code Card */
.trainer-code-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    margin-bottom: 2.5rem;
}

.trainer-code-header h2 {
    margin-bottom: 0.75rem;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
}

.trainer-code-description {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.6;
}

.trainer-code-display {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.trainer-code-value {
    flex: 1;
    min-width: 300px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    word-break: break-all;
    backdrop-filter: blur(10px);
}

.btn-copy-link {
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-copy-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.btn-copy-link .btn-icon {
    font-size: 1.2rem;
}

.trainer-code-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 500;
    opacity: 0.9;
}

.info-value {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* Link Code Container */
#link-code-container {
    margin-top: 1rem;
}

.link-code-expiry {
    color: #fff;
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
    opacity: 0.9;
}

/* Open Telegram Button - Single Main Button */
.btn-open-telegram {
    display: inline-block;
    background-color: #0088cc;
    color: white;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    letter-spacing: 0.5px;
}

.btn-open-telegram:hover {
    background-color: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.5);
}

.btn-open-telegram:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}


/* Schedule */
.schedule-list, .bookings-list {
    margin-top: 2rem;
}

.schedule-items, .bookings-items {
    margin-top: 1.5rem;
}

.schedule-day, .booking-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.schedule-item:last-child {
    border-bottom: none;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.badge-inactive {
    background-color: #e74c3c;
    color: white;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #3498db;
    color: white;
}

/* Booking actions */
.booking-info {
    margin-bottom: 1rem;
}

.booking-info-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.booking-info-row:last-child {
    margin-bottom: 0;
}

.booking-label {
    font-weight: 500;
    color: #555;
    min-width: 80px;
}

.booking-value {
    color: #333;
    flex: 1;
}

.booking-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.booking-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.booking-status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.booking-status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.booking-status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.booking-actions {
    display: flex;
    gap: 0.5rem;
}

.bookings-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Forms */
.schedule-form, .schedule-create {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
