/* css/pages/tutor-dashboard.css */
/* ===== TUTOR DASHBOARD STYLES ===== */

/* CSS Variables for Dashboard */
:root {
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --secondary: #10b981;
    --secondary-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Dashboard Layout */
.tutor-dashboard {
    min-height: 100vh;
    background: var(--gray-100);
    display: flex;
}

/* Sidebar */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: white;
    box-shadow: var(--shadow-md);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.dashboard-sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-logo i {
    font-size: 1.8rem;
}

.sidebar-toggle {
    position: absolute;
    top: 25px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Tutor Profile in Sidebar */
.tutor-sidebar-profile {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.tutor-sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    margin: 0 auto 15px;
    display: block;
}

.tutor-sidebar-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.tutor-sidebar-title {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.tutor-sidebar-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--warning);
    font-weight: 500;
}

/* Navigation Menu */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid transparent;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    transition: var(--transition);
}

.dashboard-sidebar.collapsed .nav-text {
    display: none;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
}

.sidebar-stats {
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.stat-label {
    color: var(--gray-600);
}

.stat-value {
    font-weight: 600;
    color: var(--dark);
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
}

.dashboard-main.expanded {
    margin-left: var(--sidebar-collapsed);
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    padding: 0 30px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 0;
}

.header-left p {
    color: var(--gray-600);
    margin: 5px 0 0;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notifications */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-bell i {
    font-size: 1.3rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.notification-bell:hover i {
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Profile in Header */
.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.header-profile:hover {
    background: var(--gray-100);
}

.header-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.header-profile-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--dark);
}

.header-profile-info span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-content h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.welcome-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.welcome-stats {
    display: flex;
    gap: 30px;
}

.welcome-stat {
    text-align: center;
}

.welcome-stat .number {
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.welcome-stat .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card.green {
    border-left: 4px solid var(--secondary);
}

.stat-card.blue {
    border-left: 4px solid var(--primary);
}

.stat-card.orange {
    border-left: 4px solid var(--warning);
}

.stat-card.red {
    border-left: 4px solid var(--danger);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-card.green .stat-icon {
    background: var(--secondary-light);
    color: var(--secondary);
}

.stat-card.blue .stat-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card.orange .stat-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card.red .stat-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-info p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    margin-top: 5px;
}

.stat-trend.positive {
    color: var(--secondary);
}

.stat-trend.negative {
    color: var(--danger);
}

/* Sections Common Styles */
.dashboard-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* Recent Sessions Table */
.sessions-table {
    width: 100%;
    border-collapse: collapse;
}

.sessions-table th {
    text-align: left;
    padding: 15px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--gray-200);
}

.sessions-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.sessions-table tr:hover {
    background: var(--gray-100);
}

.session-student {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.student-info h4 {
    margin: 0 0 3px 0;
    font-size: 0.95rem;
    color: var(--dark);
}

.student-info span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.session-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.status-upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-ongoing {
    background: #fef3c7;
    color: #92400e;
}

.session-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-icon.view {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-icon.view:hover {
    background: var(--primary);
    color: white;
}

.btn-icon.chat {
    background: var(--secondary-light);
    color: var(--secondary);
}

.btn-icon.chat:hover {
    background: var(--secondary);
    color: white;
}

/* Chat Section */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.chat-item:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.chat-item.unread {
    background: var(--primary-light);
    border-color: var(--primary);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-content {
    flex: 1;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.chat-student-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

.chat-time {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.chat-preview {
    color: var(--gray-600);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.unread-badge {
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Hourly Rate Management */
.rate-management {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.current-rate {
    text-align: center;
    margin-bottom: 30px;
}

.current-rate .label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.current-rate .rate {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.rate-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.form-control {
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.rate-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.rate-type {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.rate-type:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.rate-type h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.rate-type .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.rate-type .desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 15px;
}

/* Payment History */
.payment-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-btn:hover:not(.active) {
    background: var(--gray-200);
}

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

.payments-table th {
    text-align: left;
    padding: 15px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--gray-200);
}

.payments-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.payment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* Tax Center */
.tax-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tax-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
}

.tax-card h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: var(--gray-600);
}

.tax-card .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.tax-card .period {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.tax-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.document-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.document-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.document-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--dark);
}

.document-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.download-btn {
    padding: 8px 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--primary-dark);
}

/* Rewards Section */
.rewards-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.rewards-summary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.rewards-summary .points {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1;
}

.rewards-summary .label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.rewards-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rewards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.reward-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.reward-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary);
}

.reward-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.reward-card .points {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: #0da271;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Calendar Widget */
.calendar-widget {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.calendar-nav-btn:hover {
    background: var(--gray-100);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-day {
    text-align: center;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.9rem;
    padding: 5px;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-date {
    text-align: center;
    padding: 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.calendar-date:hover {
    background: var(--gray-200);
}

.calendar-date.today {
    background: var(--primary);
    color: white;
}

.calendar-date.session {
    background: var(--secondary-light);
    color: var(--secondary);
    font-weight: 600;
}

.calendar-date.other-month {
    color: var(--gray-400);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: var(--gray-600);
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 1200px) {
    .rewards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: white;
        border-radius: var(--radius);
        cursor: pointer;
        font-size: 1.2rem;
        margin-right: 15px;
    }
    
    .welcome-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .rate-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 20px;
    }
    
    .welcome-banner {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tax-overview {
        grid-template-columns: 1fr;
    }
    
    .tax-documents {
        grid-template-columns: 1fr;
    }
    
    .rewards-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .session-student {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .session-actions {
        justify-content: center;
    }
    
    .header-left h1 {
        font-size: 1.3rem;
    }
    
    .header-profile-info {
        display: none;
    }
    
    .calendar-dates,
    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .dashboard-header {
        padding: 0 15px;
    }
    
    .dashboard-section {
        padding: 20px;
    }
    
    .sessions-table {
        display: block;
        overflow-x: auto;
    }
    
    .payments-table {
        display: block;
        overflow-x: auto;
    }
    
    .rewards-list {
        grid-template-columns: 1fr;
    }
    
    .rate-types {
        grid-template-columns: 1fr;
    }
    
    .payment-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tutor-dashboard {
        background: #1a1a1a;
    }
    
    .dashboard-sidebar,
    .dashboard-header,
    .dashboard-section,
    .stat-card,
    .chat-item,
    .document-card,
    .reward-card,
    .rate-type {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #444444;
    }
    
    .tutor-sidebar-name,
    .section-header h2,
    .stat-info h3,
    .chat-student-name,
    .document-info h4,
    .reward-card h4,
    .rate-type h4 {
        color: #ffffff;
    }
    
    .tutor-sidebar-title,
    .stat-info p,
    .chat-preview,
    .document-info p,
    .rate-type .desc {
        color: #cccccc;
    }
    
    .nav-link {
        color: #cccccc;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #3d3d3d;
        color: var(--primary-light);
    }
    
    .sidebar-footer,
    .sidebar-header,
    .tutor-sidebar-profile {
        border-color: #444444;
    }
    
    .sessions-table th,
    .payments-table th {
        background: #3d3d3d;
        color: #ffffff;
        border-color: #444444;
    }
    
    .sessions-table td,
    .payments-table td {
        border-color: #444444;
    }
    
    .sessions-table tr:hover,
    .payments-table tr:hover {
        background: #3d3d3d;
    }
    
    .chat-item:hover {
        background: #3d3d3d;
    }
    
    .rate-management,
    .tax-card,
    .calendar-widget {
        background: #3d3d3d;
    }
    
    .form-control {
        background: #2d2d2d;
        border-color: #444444;
        color: #ffffff;
    }
    
    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
    }
}