/* Dashboard Page Styles - CallYourKid */

/* CSS Variables - Design System */
:root {
    --navy: #1a2e4a;
    --blue: #2563eb;
    --sky: #e0f0ff;
    --teal: #0d9488;
    --orange: #f97316;
    --yellow: #fde68a;
    --warm: #fff7ed;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    
    --border-radius: 14px;
    --border-radius-pill: 50px;
    --container-max-width: 1140px;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    background: var(--gray-50);
    color: var(--gray-800);
}

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

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--navy);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

.sidebar-header .logo span {
    color: var(--orange);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--orange);
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 16px;
}

.user-profile {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.user-info {
    flex: 1;
}

.user-role-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Nunito', sans-serif;
}

.case-code-display {
    text-align: center;
    padding: 20px;
}

.code-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 12px;
    font-size: 14px;
}

.code-value {
    background: linear-gradient(135deg, #f0f7ff, #fff7ed);
    border: 2px solid var(--blue);
    border-radius: 12px;
    padding: 20px;
    font-size: 24px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-value:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.code-instructions {
    font-family: 'Nunito', sans-serif;
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 14px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    max-width: calc(100vw - 280px);
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    background: white;
    padding: 16px 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    font-family: 'Nunito', sans-serif;
}

.date-display {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 16px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.notification-bell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-bell.pulse {
    animation: pulse 2s infinite;
}

.bell-icon {
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--orange);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: white;
}

.user-name-small {
    font-size: 14px;
    color: var(--navy);
}

.header-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--navy);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--gray-50);
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Buttons */
.btn-primary {
    background: var(--orange);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-ghost {
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
    padding: 10px 22px;
    border-radius: var(--border-radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-ghost:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-1px);
}

.btn-ghost.small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-ghost.small.danger {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-ghost.small.danger:hover {
    background: #ef4444;
    color: white;
}

.btn-nav {
    background: var(--blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-nav:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--sky);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.live {
    background: #fef2f2;
    color: #ef4444;
}

.stat-icon.pending {
    background: #fff7ed;
    color: var(--orange);
}

.stat-icon.rating {
    background: #fef3c7;
    color: #f59e0b;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Nunito', sans-serif;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Panels */
.panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.panel-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    font-family: 'Nunito', sans-serif;
}

.live-indicator {
    color: #ef4444;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.schedule-count,
.reports-count,
.chart-subtitle,
.sessions-count,
.requests-count,
.notifications-count,
.actions-count,
.cases-count {
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

/* Role-specific dashboard containers */
.role-dashboard {
    display: none;
}

/* Parent Dashboard Styles */
.upcoming-sessions {
    grid-column: 1 / -1;
}

.sessions-list {
    max-height: 500px;
    overflow-y: auto;
}

.session-card {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.session-card:last-child {
    border-bottom: none;
}

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

.session-family {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
}

.session-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.session-status.scheduled {
    background: #f0fdf4;
    color: #16a34a;
}

.session-status.live {
    background: #fef2f2;
    color: #ef4444;
    animation: pulse 2s infinite;
}

.session-status.completed {
    background: var(--gray-50);
    color: var(--gray-600);
}

.session-status.cancelled {
    background: #fef2f2;
    color: #ef4444;
}

.session-status.no_show {
    background: #fff7ed;
    color: var(--orange);
}

.session-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.session-datetime {
    flex: 1;
}

.session-date {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.session-time {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
}

.session-duration {
    background: var(--gray-50);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.session-countdown {
    background: #fef3c7;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.countdown-label {
    font-size: 12px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    margin-bottom: 4px;
}

.countdown-timer {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--navy);
    font-size: 18px;
}

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

/* Children Grid */
.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px;
}

.child-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.child-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.child-header {
    margin-bottom: 16px;
}

.child-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
    margin-bottom: 4px;
}

.child-age {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
}

.child-restrictions {
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
}

.restriction-title {
    font-size: 12px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.restriction-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.restriction-badge {
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--gray-700);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    border: 1px solid var(--gray-200);
}

/* Call Requests */
.call-requests {
    grid-column: 1 / -1;
}

.request-actions {
    padding: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.requests-list {
    max-height: 400px;
    overflow-y: auto;
}

.request-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 24px;
    transition: all 0.3s ease;
}

.request-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.request-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-child strong {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
}

.request-case {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 14px;
    background: var(--warm);
    padding: 4px 8px;
    border-radius: 6px;
}

.request-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-status.pending {
    background: var(--yellow);
    color: var(--navy);
}

.request-status.confirmed {
    background: var(--teal);
    color: white;
}

.request-status.objected {
    background: #ef4444;
    color: white;
}

.request-status.scheduled {
    background: var(--blue);
    color: white;
}

.request-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-datetime {
    display: flex;
    gap: 12px;
    align-items: center;
}

.request-date, .request-time {
    font-family: 'Lora', serif;
    color: var(--gray-700);
    font-size: 14px;
}

.request-note {
    background: var(--warm);
    border-left: 3px solid var(--orange);
    padding: 12px;
    border-radius: 8px;
    font-family: 'Lora', serif;
    color: var(--gray-700);
    font-size: 14px;
    font-style: italic;
}

/* History List */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.history-info {
    flex: 1;
}

.history-family {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.history-time {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
}

.history-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.history-status.completed {
    background: #f0fdf4;
    color: #16a34a;
}

/* Notifications */
.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.notification-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-item.reminder .notification-icon {
    background: #fef3c7;
    color: var(--orange);
}

.notification-item.availability .notification-icon {
    background: #dbeafe;
    color: var(--blue);
}

.notification-item.report .notification-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
}

/* Supervisor Dashboard Styles */
.live-calls {
    grid-column: 1 / -1;
}

.call-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.call-info {
    flex: 1;
}

.call-family {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.call-timer {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--gray-600);
    font-size: 14px;
}

.call-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
}

.sound-bar {
    width: 3px;
    background: var(--blue);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.sound-bar:nth-child(1) { animation-delay: 0s; height: 20%; }
.sound-bar:nth-child(2) { animation-delay: 0.1s; height: 40%; }
.sound-bar:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.sound-bar:nth-child(4) { animation-delay: 0.3s; height: 80%; }
.sound-bar:nth-child(5) { animation-delay: 0.4s; height: 40%; }

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

/* Schedule */
.schedule-list {
    max-height: 400px;
    overflow-y: auto;
}

.schedule-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.schedule-time {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 14px;
    min-width: 80px;
}

.schedule-family {
    flex: 1;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
}

.schedule-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.schedule-badge.complete {
    background: #f0fdf4;
    color: #16a34a;
}

.schedule-badge.live {
    background: #fef2f2;
    color: #ef4444;
}

.schedule-badge.soon {
    background: #fff7ed;
    color: var(--orange);
}

.schedule-badge.pending {
    background: var(--gray-50);
    color: var(--gray-600);
}

.schedule-badge.cancelled {
    background: #fef2f2;
    color: #ef4444;
}

.schedule-badge.no_show {
    background: #fff7ed;
    color: var(--orange);
}

/* My Cases */
.my-cases {
    grid-column: 1 / -1;
}

.cases-list {
    max-height: 300px;
    overflow-y: auto;
}

.case-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.case-info {
    flex: 1;
}

.case-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.case-type {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    margin-bottom: 2px;
}

.case-children {
    font-size: 12px;
    color: var(--gray-500);
    font-family: 'Nunito', sans-serif;
}

/* Availability Manager */
.availability-manager {
    grid-column: 1 / -1;
}

.availability-grid {
    padding: 24px;
    overflow-x: auto;
}

.availability-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.time-slot-header {
    font-size: 12px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.day-header {
    font-size: 12px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    text-align: center;
}

.availability-row {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.time-slot-label {
    font-size: 12px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.availability-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.availability-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.availability-toggle label {
    width: 40px;
    height: 24px;
    background: var(--gray-200);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.availability-toggle label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.availability-toggle input[type="checkbox"]:checked + label {
    background: var(--blue);
}

.availability-toggle input[type="checkbox"]:checked + label::after {
    transform: translateX(16px);
}

/* Reports */
.reports-list {
    max-height: 300px;
    overflow-y: auto;
}

.report-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.report-item.overdue {
    background: #fef2f2;
}

.report-item.overdue .report-family {
    color: #ef4444;
}

.report-info {
    flex: 1;
}

.report-family {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.report-child {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 4px;
}

.report-time {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-submitted-badge {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Weekly Chart */
.chart-container {
    padding: 24px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 16px;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.bar {
    width: 100%;
    background: var(--sky);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.bar:hover {
    background: var(--blue);
}

.bar.current {
    background: var(--orange);
}

.bar-value {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}

.bar-label {
    margin-top: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--gray-600);
}

/* Professional Dashboard Styles */
.cases-overview {
    grid-column: 1 / -1;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 24px;
}

.case-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-card.inactive {
    opacity: 0.7;
    border-color: var(--gray-300);
}

.case-card .case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.case-card .case-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
}

.case-card .case-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.case-card .case-status.active {
    background: #f0fdf4;
    color: #16a34a;
}

.case-card .case-status.inactive {
    background: var(--gray-50);
    color: var(--gray-600);
}

.case-card .case-status.pending {
    background: #fff7ed;
    color: var(--orange);
}

.case-card .case-status.suspended {
    background: #fef2f2;
    color: #ef4444;
}

.case-card .case-status.closed {
    background: var(--gray-50);
    color: var(--gray-600);
}

.case-details {
    margin-bottom: 16px;
}

.case-updated {
    font-size: 12px;
    color: var(--gray-500);
    font-family: 'Nunito', sans-serif;
}

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

/* Upcoming All Sessions */
.upcoming-all-sessions {
    grid-column: 1 / -1;
}

.session-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.session-info {
    flex: 1;
}

.session-case {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.session-item .session-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.session-item .session-status.scheduled {
    background: #f0fdf4;
    color: #16a34a;
}

/* Pending Actions */
.pending-actions {
    grid-column: 1 / -1;
}

.actions-list {
    max-height: 400px;
    overflow-y: auto;
}

.action-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.action-item.high {
    background: #fef2f2;
}

.action-item.medium {
    background: #fff7ed;
}

.action-item.low {
    background: #f0fdf4;
}

.action-info {
    flex: 1;
}

.action-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.action-case {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    margin-bottom: 2px;
}

.action-time {
    font-size: 12px;
    color: var(--gray-500);
    font-family: 'Nunito', sans-serif;
}

/* Quick Links */
.quick-links {
    grid-column: 1 / -1;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 24px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    color: var(--navy);
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.quick-link-icon {
    font-size: 24px;
}

.quick-link-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 48px rgba(26, 46, 74, 0.12);
}

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

.modal-header h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-family: 'Lora', serif;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.char-count {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 12px;
    text-align: right;
    margin-top: 4px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Profile Completion Banner */
.profile-completion-banner {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: white;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-icon {
    font-size: 20px;
}

.banner-text {
    flex: 1;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.banner-action {
    background: white;
    color: var(--orange);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.banner-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

/* Payment Banner */
.payment-banner {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    color: white;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2001;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Empty States */
.empty-state {
    padding: 40px 24px;
    text-align: center;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-overlay p {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--gray-600);
}

/* View All Links */
.view-all-link {
    color: var(--blue);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--navy);
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Add Child Inline Form */
.add-child-form {
    border-top: 1px solid var(--gray-100);
    background: var(--warm);
}

.form-content {
    padding: 24px;
    position: relative;
}

.form-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-600);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.form-close:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.form-content h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 20px 0;
    font-size: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 16px 0;
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.add-child-form .form-group {
    margin-bottom: 0;
}

.add-child-form .form-group label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 14px;
}

.add-child-form .form-group input,
.add-child-form .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.add-child-form .form-group input:focus,
.add-child-form .form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.add-child-form .form-group input:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.6;
}

.age-display {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--sky);
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.form-error {
    margin-top: 16px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

/* Updated Child Cards */
.child-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.child-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.child-header {
    margin-bottom: 16px;
}

.child-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
    margin-bottom: 4px;
}

.child-age {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
}

.child-restrictions {
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
    margin-bottom: 16px;
}

.restriction-title {
    font-size: 12px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.restriction-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.restriction-badge {
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--gray-700);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    border: 1px solid var(--gray-200);
}

.child-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.child-actions .btn-ghost.small {
    flex: 1;
}

.child-actions .btn-primary.small {
    flex: 1;
}

/* Child Profile Page Styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.child-header-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.child-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.child-info h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    font-size: 36px;
}

.child-age-badge {
    background: var(--yellow);
    color: var(--navy);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.child-case-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 16px;
}

/* Restriction Banner */
.restriction-banner {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: white;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
}

.restriction-banner.warning {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.restriction-banner.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.restriction-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.restriction-banner .banner-icon {
    font-size: 20px;
}

.restriction-banner .banner-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    flex: 1;
}

/* Info and Restrictions Cards */
.info-card,
.restrictions-card,
.session-history-card {
    margin-bottom: 32px;
}

.info-content,
.restrictions-content {
    padding: 24px;
}

.info-row,
.restriction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child,
.restriction-row:last-child {
    border-bottom: none;
}

.info-label,
.restriction-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 14px;
    min-width: 200px;
}

.info-value,
.restriction-value {
    font-family: 'Lora', serif;
    color: var(--navy);
    font-size: 16px;
    font-weight: 500;
}

/* Edit Forms */
.edit-form {
    padding: 24px;
    background: var(--warm);
}

.edit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.edit-form .form-group {
    margin-bottom: 0;
}

.edit-form .form-group label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 14px;
}

.edit-form .form-group input,
.edit-form .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.edit-form .form-group input:focus,
.edit-form .form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.edit-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

/* Session History */
.session-history-card .history-list {
    max-height: 400px;
    overflow-y: auto;
}

.session-history-card .history-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.session-history-card .history-item:last-child {
    border-bottom: none;
}

.session-history-card .history-info {
    flex: 1;
}

.session-history-card .history-family {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.session-history-card .history-time {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Nunito', sans-serif;
}

.session-history-card .history-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 12px;
}

.session-history-card .history-status.completed {
    background: #f0fdf4;
    color: #16a34a;
}

.session-history-card .history-status.scheduled {
    background: #f0fdf4;
    color: #16a34a;
}

.session-history-card .history-status.cancelled {
    background: #fef2f2;
    color: #ef4444;
}

.session-history-card .history-status.no_show {
    background: #fff7ed;
    color: var(--orange);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .live-calls,
    .my-cases,
    .availability-manager,
    .cases-overview,
    .upcoming-all-sessions,
    .pending-actions,
    .quick-links,
    .upcoming-sessions,
    .call-requests {
        grid-column: 1;
    }
    
    .children-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
        max-width: 100vw;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .availability-grid {
        overflow-x: scroll;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .panel-header {
        padding: 16px;
    }
    
    .panel-header h2 {
        font-size: 18px;
    }
    
    .children-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: white;
}

.sidebar-header .logo span {
  color: var(--orange);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.nav-text {
  font-size: 16px;
}

.user-profile {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.user-info {
  flex: 1;
}

.user-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.user-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Nunito', sans-serif;
}

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

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.date-display {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-bell {
  position: relative;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.notification-bell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bell-icon {
  font-size: 20px;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--orange);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 12px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

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

.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--sky);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-icon.live {
  background: #fef2f2;
  color: #ef4444;
}

.stat-icon.pending {
  background: #fff7ed;
  color: var(--orange);
}

.stat-icon.rating {
  background: #fef3c7;
  color: #f59e0b;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Nunito', sans-serif;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Panels */
.panel {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.panel-header {
  padding: 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.live-indicator {
  color: #ef4444;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

.schedule-count,
.reports-count,
.chart-subtitle {
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

/* Live Calls */
.live-calls {
  grid-column: 1 / -1;
}

.call-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.call-info {
  flex: 1;
}

.call-family {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.call-timer {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--gray-600);
  font-size: 14px;
}

.call-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
}

.sound-bar {
  width: 3px;
  background: var(--blue);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.sound-bar:nth-child(1) { animation-delay: 0s; height: 20%; }
.sound-bar:nth-child(2) { animation-delay: 0.1s; height: 40%; }
.sound-bar:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.sound-bar:nth-child(4) { animation-delay: 0.3s; height: 80%; }
.sound-bar:nth-child(5) { animation-delay: 0.4s; height: 40%; }

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

.btn-ghost.small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-ghost.small.danger {
  color: #ef4444;
  border-color: #ef4444;
}

.btn-ghost.small.danger:hover {
  background: #ef4444;
  color: white;
}

/* Schedule */
.schedule-list {
  max-height: 400px;
  overflow-y: auto;
}

.schedule-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.schedule-time {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 14px;
  min-width: 80px;
}

.schedule-family {
  flex: 1;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--navy);
}

.schedule-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.schedule-badge.complete {
  background: #f0fdf4;
  color: #16a34a;
}

.schedule-badge.live {
  background: #fef2f2;
  color: #ef4444;
}

.schedule-badge.soon {
  background: #fff7ed;
  color: var(--orange);
}

.schedule-badge.pending {
  background: var(--gray-50);
  color: var(--gray-600);
}

/* Reports */
.reports-list {
  max-height: 300px;
  overflow-y: auto;
}

.report-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.report-item.overdue {
  background: #fef2f2;
}

.report-info {
  flex: 1;
}

.report-family {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.report-child {
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 4px;
}

.report-time {
  font-size: 14px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

.report-item.overdue .report-family {
  color: #ef4444;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-submitted-badge {
  background: #10b981;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Chart */
.chart-container {
  padding: 24px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  gap: 16px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.bar {
  width: 100%;
  background: var(--sky);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.bar:hover {
  background: var(--blue);
}

.bar.current {
  background: var(--orange);
}

.bar-value {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.bar-label {
  margin-top: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--gray-600);
}

/* Profile Completion Banner */
.profile-completion-banner {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: white;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-icon {
  font-size: 20px;
}

.banner-text {
  flex: 1;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

.banner-action {
  background: white;
  color: var(--orange);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.banner-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* User Dropdown */
.user-dropdown {
  position: relative;
  display: none;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: white;
}

.user-name-small {
  font-size: 14px;
  color: var(--navy);
}

.dropdown-arrow {
  font-size: 12px;
  color: var(--gray-600);
  transition: transform 0.3s ease;
}

.user-dropdown-toggle:hover .dropdown-arrow {
  transform: translateY(1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--navy);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--gray-50);
}

.dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

.dropdown-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Role-specific dashboard containers */
.role-dashboard {
  display: none;
}

/* Parent Dashboard Styles */
.sessions-list {
  max-height: 500px;
  overflow-y: auto;
}

.session-card {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.session-card:last-child {
  border-bottom: none;
}

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

.session-family {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
}

.session-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.session-status.scheduled {
  background: #f0fdf4;
  color: #16a34a;
}

.session-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.session-datetime {
  flex: 1;
}

.session-date {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.session-time {
  font-size: 14px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
}

.session-duration {
  background: var(--gray-50);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 14px;
}

.session-countdown {
  background: #fef3c7;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.countdown-label {
  font-size: 12px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
}

.countdown-timer {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
}

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

/* Children Grid */
.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px;
}

.child-card {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.child-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.child-header {
  margin-bottom: 16px;
}

.child-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 4px;
}

.child-age {
  font-size: 14px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
}

.child-restrictions {
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
}

.restriction-title {
  font-size: 12px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.restriction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.restriction-badge {
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--gray-700);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  border: 1px solid var(--gray-200);
}

/* History List */
.history-list {
  max-height: 400px;
  overflow-y: auto;
}

.history-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.history-info {
  flex: 1;
}

.history-family {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.history-time {
  font-size: 14px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
}

.history-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.history-status.completed {
  background: #f0fdf4;
  color: #16a34a;
}

/* Notifications */
.notifications-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

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

.notification-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.notification-item.reminder .notification-icon {
  background: #fef3c7;
  color: var(--orange);
}

.notification-item.availability .notification-icon {
  background: #dbeafe;
  color: var(--blue);
}

.notification-item.report .notification-icon {
  background: #f0fdf4;
  color: #16a34a;
}

.notification-content {
  flex: 1;
}

.notification-message {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.notification-time {
  font-size: 12px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
}

/* Supervisor Dashboard Styles */
.my-cases {
  grid-column: 1 / -1;
}

.cases-list {
  max-height: 300px;
  overflow-y: auto;
}

.case-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.case-info {
  flex: 1;
}

.case-number {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.case-type {
  font-size: 14px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  margin-bottom: 2px;
}

.case-children {
  font-size: 12px;
  color: var(--gray-500);
  font-family: 'Nunito', sans-serif;
}

/* Availability Manager */
.availability-manager {
  grid-column: 1 / -1;
}

.availability-grid {
  padding: 24px;
  overflow-x: auto;
}

.availability-header {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.time-slot-header {
  font-size: 12px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

.day-header {
  font-size: 12px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  text-align: center;
}

.availability-row {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.time-slot-label {
  font-size: 12px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.availability-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.availability-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.availability-toggle label {
  width: 40px;
  height: 24px;
  background: var(--gray-200);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.availability-toggle label::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.availability-toggle input[type="checkbox"]:checked + label {
  background: var(--blue);
}

.availability-toggle input[type="checkbox"]:checked + label::after {
  transform: translateX(16px);
}

/* Professional Dashboard Styles */
.cases-overview {
  grid-column: 1 / -1;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 24px;
}

.case-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-card.inactive {
  opacity: 0.7;
  border-color: var(--gray-300);
}

.case-card .case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.case-card .case-number {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
}

.case-card .case-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.case-card .case-status.active {
  background: #f0fdf4;
  color: #16a34a;
}

.case-card .case-status.inactive {
  background: var(--gray-50);
  color: var(--gray-600);
}

.case-card .case-status.pending {
  background: #fff7ed;
  color: var(--orange);
}

.case-details {
  margin-bottom: 16px;
}

.case-updated {
  font-size: 12px;
  color: var(--gray-500);
  font-family: 'Nunito', sans-serif;
}

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

/* Upcoming All Sessions */
.upcoming-all-sessions {
  grid-column: 1 / -1;
}

.session-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.session-info {
  flex: 1;
}

.session-case {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.session-item .session-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.session-item .session-status.scheduled {
  background: #f0fdf4;
  color: #16a34a;
}

/* Pending Actions */
.pending-actions {
  grid-column: 1 / -1;
}

.actions-list {
  max-height: 400px;
  overflow-y: auto;
}

.action-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.action-item.high {
  background: #fef2f2;
}

.action-item.medium {
  background: #fff7ed;
}

.action-item.low {
  background: #f0fdf4;
}

.action-info {
  flex: 1;
}

.action-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.action-case {
  font-size: 14px;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  margin-bottom: 2px;
}

.action-time {
  font-size: 12px;
  color: var(--gray-500);
  font-family: 'Nunito', sans-serif;
}

.actions-count {
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

/* Quick Links */
.quick-links {
  grid-column: 1 / -1;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding: 24px;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--navy);
  transition: all 0.3s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: white;
}

.quick-link-icon {
  font-size: 24px;
}

.quick-link-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

/* Empty States */
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--gray-600);
  font-family: 'Nunito', sans-serif;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  margin-bottom: 20px;
  font-size: 16px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.loading-overlay p {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--gray-600);
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.5); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* View All Links */
.view-all-link {
  color: var(--blue);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: var(--navy);
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .live-calls,
  .my-cases,
  .availability-manager,
  .cases-overview,
  .upcoming-all-sessions,
  .pending-actions,
  .quick-links {
    grid-column: 1;
  }
  
  .children-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .call-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .call-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .report-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .chart-bars {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 16px;
  }
  
  .panel-header {
    padding: 16px;
  }
  
  .call-item,
  .schedule-item,
  .report-item {
    padding: 12px 16px;
  }
  
  .chart-container {
    padding: 16px;
  }
}
