/* Mobile Styles - Trainer Dashboard */
/* Breakpoint: 768px and below */

@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 16px;
    }
    
    /* Navbar mobile */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar h1 {
        font-size: 1.25rem;
    }
    
    .navbar-mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        max-height: 400px;
    }
    
    .nav-links a {
        width: 100%;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 48px;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Login mobile */
    .login-container {
        max-width: 100%;
        margin: 2rem auto;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 1rem;
        font-size: 16px;
        min-height: 48px;
        border-radius: 6px;
    }
    
    .form-group input:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }
    
    .btn {
        padding: 1rem 1.5rem;
        min-height: 48px;
        font-size: 1rem;
        width: 100%;
        border-radius: 6px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Dashboard mobile */
    .dashboard {
        margin-top: 1rem;
    }
    
    .dashboard-welcome {
        margin-bottom: 1.5rem;
    }
    
    .dashboard-welcome h1 {
        font-size: 1.75rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .dashboard-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .dashboard-card .card-icon {
        font-size: 2.5rem;
    }
    
    .dashboard-card h3 {
        font-size: 1.25rem;
    }
    
    /* Trainer Code Card mobile */
    .trainer-code-card {
        padding: 1.5rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .trainer-code-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .trainer-code-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .trainer-code-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trainer-code-value {
        min-width: 0;
        width: 100%;
        padding: 1rem;
        font-size: 0.875rem;
        word-break: break-all;
    }
    
    .btn-copy-link {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        min-height: 48px;
        font-size: 1rem;
    }
    
    .trainer-code-info {
        padding: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Schedule/Bookings list mobile */
    .schedule-list, .bookings-list {
        margin-top: 1rem;
    }
    
    .schedule-day, .booking-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    /* Filters mobile */
    .filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-btn {
        padding: 0.75rem 1rem;
        white-space: nowrap;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Booking info mobile */
    .booking-info-row {
        flex-direction: column;
        gap: 0.25rem;
        margin-bottom: 1rem;
    }
    
    .booking-label {
        min-width: 0;
        font-size: 0.9rem;
    }
    
    .booking-value {
        font-size: 1rem;
    }
    
    .booking-status {
        display: inline-block;
        margin-top: 0.25rem;
    }
    
    /* Booking actions mobile */
    .booking-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .booking-actions .btn {
        width: 100%;
        min-height: 48px;
    }
    
    .booking-actions form {
        width: 100%;
    }
    
    .bookings-empty {
        padding: 2rem 1rem;
        font-size: 1rem;
    }
    
    /* Forms mobile */
    .schedule-form, .schedule-create {
        max-width: 100%;
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* Footer mobile */
    footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.875rem;
    }
}
