/* Neuroconnect Therapy Centre Management System Styles */
/* Color Palette: Teal, Yellow, Orange */

:root {
    --primary-teal: #008B8B;
    --light-teal: #20B2AA;
    --dark-teal: #006666;
    --primary-yellow: #FFD700;
    --light-yellow: #FFEB3B;
    --primary-orange: #FF8C00;
    --light-orange: #FFA500;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
}

#app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.logo {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}

.logo i {
    color: var(--primary-yellow);
    margin-right: 0.5rem;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin: 0.5rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-left-color: var(--primary-yellow);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    border-left-color: var(--primary-orange);
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 0;
}

.header {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    color: var(--primary-teal);
    font-size: 1.8rem;
    font-weight: 600;
}

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

.user-avatar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}

.dropdown-btn:hover {
    color: var(--primary-teal);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 180px;
    z-index: 1000;
    display: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-gray);
}

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

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-teal);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.access-denied {
    opacity: 0.5;
    pointer-events: none;
}

.access-denied .nav-link {
    cursor: not-allowed;
}

.access-denied-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem;
}

.access-denied-icon {
    width: 80px;
    height: 80px;
    background: var(--error);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.access-denied-icon i {
    font-size: 2rem;
    color: var(--white);
}

.access-denied-message h3 {
    color: var(--error);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.access-denied-message p {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.user-avatar i {
    font-size: 2rem;
    color: var(--primary-teal);
}

/* Content Sections */
.content-section {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-card:nth-child(1) .stat-icon { background: var(--primary-teal); }
.stat-card:nth-child(2) .stat-icon { background: var(--primary-orange); }
.stat-card:nth-child(3) .stat-icon { background: var(--success); }
.stat-card:nth-child(4) .stat-icon { background: var(--warning); }

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Dashboard Actions */
.dashboard-actions {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.dashboard-actions h3 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

/* Directors Section */
.directors-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.directors-section h3 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.directors-filter {
    margin-bottom: 1rem;
}

.directors-filter select {
    padding: 0.5rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background: var(--white);
    font-size: 1rem;
    min-width: 200px;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.director-card {
    background: linear-gradient(135deg, var(--light-teal), var(--primary-teal));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.director-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.director-card .position {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--primary-teal);
    font-size: 1.8rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-teal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-teal);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--primary-yellow);
    color: var(--dark-gray);
}

.btn-secondary:hover {
    background: var(--light-yellow);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.filters select {
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background: var(--white);
    font-size: 1rem;
    min-width: 150px;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary-teal);
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--primary-teal);
    color: var(--white);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background-color: var(--light-gray);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: var(--primary-teal);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--medium-gray);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Payroll Section */
.payroll-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.payroll-section h3 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.payroll-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.payroll-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-orange);
}

.payroll-stat span:last-child {
    font-weight: 600;
    color: var(--primary-teal);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .header {
        padding: 1rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 60px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0.5rem;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo h2 {
        display: none;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        justify-content: center;
        padding: 1rem 0.5rem;
    }
    
    .user-info span {
        display: none;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--error); }
.bg-teal { background-color: var(--primary-teal); }
.bg-yellow { background-color: var(--primary-yellow); }
.bg-orange { background-color: var(--primary-orange); }

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 50%, var(--primary-orange) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
    color: var(--white);
    text-align: center;
    padding: 2rem 1.5rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.login-form {
    padding: 2rem 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 12px;
    color: var(--primary-teal);
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-teal);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.login-btn:active {
    transform: translateY(0);
}

.login-info {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.login-info h4 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-account {
    background: var(--white);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-teal);
    cursor: pointer;
    transition: var(--transition);
}

.demo-account:hover {
    background: var(--primary-teal);
    color: var(--white);
    transform: translateX(4px);
}

.demo-account:nth-child(2) {
    border-left-color: var(--primary-orange);
}

.demo-account:nth-child(2):hover {
    background: var(--primary-orange);
}

.demo-account strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.demo-account small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.error-message {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #d32f2f;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.error-message.success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

/* Responsive login design */
@media (max-width: 480px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-header {
        padding: 1.5rem 1rem;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-form {
        padding: 1.5rem 1rem;
    }
    
    .demo-accounts {
        gap: 0.5rem;
    }
}

/* Enhanced Schedule Styles */
.schedule-row {
    transition: var(--transition);
}

.schedule-row:hover {
    background-color: rgba(0, 139, 139, 0.05);
}

.schedule-row.upcoming {
    border-left: 4px solid var(--success);
}

.schedule-row.completed {
    border-left: 4px solid var(--medium-gray);
    opacity: 0.8;
}

.datetime-info {
    text-align: center;
}

.datetime-info div {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.day-badge {
    background: var(--primary-teal);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.2rem;
}

.time-badge {
    background: var(--primary-yellow);
    color: var(--dark-gray);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.therapy-type-badge {
    background: var(--light-orange);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.dept-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.dept-speech-department {
    background: #e3f2fd;
    color: #1976d2;
}

.dept-occupational-therapy {
    background: #f3e5f5;
    color: #7b1fa2;
}

.dept-special-education {
    background: #e8f5e8;
    color: #388e3c;
}

.dept-physical-therapy {
    background: #fff3e0;
    color: #f57c00;
}

.dept-assessment-unit {
    background: #fce4ec;
    color: #c2185b;
}

.dept-medical-consultation {
    background: #f1f8e9;
    color: #689f38;
}

.dept-general {
    background: var(--medium-gray);
    color: var(--dark-gray);
}

.duration-badge {
    background: var(--light-teal);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.location-info {
    color: var(--dark-gray);
    font-style: italic;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    display: inline-block;
}

.status-badge.upcoming {
    background: var(--success);
    color: var(--white);
}

.status-badge.completed {
    background: var(--medium-gray);
    color: var(--dark-gray);
}

.recurring-badge {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0.2rem;
    display: inline-block;
}

.action-buttons {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
}

.schedule-details-row {
    background-color: rgba(32, 178, 170, 0.05);
}

.schedule-details-content {
    padding: 1rem;
    border-radius: var(--border-radius);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: var(--white);
    padding: 0.8rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.detail-item strong {
    color: var(--primary-teal);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
}

.detail-item p {
    color: var(--dark-gray);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Schedule form enhancements */
#recurring-options {
    background: rgba(0, 139, 139, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    border-left: 4px solid var(--primary-teal);
}

/* Responsive schedule table */
@media (max-width: 1200px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    #schedule-table {
        min-width: 1000px;
    }
}

@media (max-width: 768px) {
    .datetime-info {
        font-size: 0.8rem;
    }
    
    .day-badge, .time-badge, .therapy-type-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
    
    .dept-badge, .duration-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }
}
