/* ============================
   Couples Match Command Center
   A beautiful, modern interface
   ============================ */

:root {
    /* Color Palette - Clean Professional Theme */
    --bg-primary: #1a1d24;
    --bg-secondary: #242933;
    --bg-tertiary: #2d3340;
    --bg-card: #353b48;
    
    --text-primary: #ffffff;
    --text-secondary: #c5cad4;
    --text-muted: #8a92a3;
    
    --accent-ortho: #0ea5e9;
    --accent-ortho-dim: rgba(14, 165, 233, 0.1);
    --accent-obgyn: #ec4899;
    --accent-obgyn-dim: rgba(236, 72, 153, 0.1);
    --accent-gold: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    
    --border-color: #3d4452;
    --border-light: #4a5261;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --sidebar-width: 280px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 107, 157, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(77, 166, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ============================
   Sidebar Styles
   ============================ */

.sidebar {
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo h1 span {
    background: linear-gradient(135deg, var(--accent-ortho), var(--accent-obgyn));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    flex: 1;
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
    width: 100%;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--accent-ortho-dim), var(--accent-obgyn-dim));
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.nav-icon {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.match-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.countdown {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-ortho));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================
   Main Content Area
   ============================ */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
    min-height: 100vh;
}

.content-header {
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease;
}

.content-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

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

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

/* ============================
   Dashboard Styles
   ============================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

.stat-card.pairs-accent {
    border-left: 4px solid var(--accent-gold);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

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

.dashboard-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.dashboard-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.65rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-light);
}

.timeline-item.completed .timeline-marker {
    background: var(--success);
    border-color: var(--success);
}

.timeline-item.active .timeline-marker {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Tips List */
.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-ortho);
    font-weight: bold;
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================
   Program Tables
   ============================ */

.program-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-group select,
.filter-group input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.filter-group input {
    min-width: 200px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.programs-table-container {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

.programs-table th {
    background: var(--bg-tertiary);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 2px solid var(--border-light);
}

.programs-table td {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    vertical-align: middle;
}

.programs-table td strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.programs-table tr:last-child td {
    border-bottom: none;
}

.programs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.empty-row td {
    padding: 3rem;
}

/* Regional Headers */
.region-header-row {
    background: none !important;
}

.region-header-row:hover {
    background: none !important;
}

.region-header-row td {
    padding: 3rem 0 0 0 !important;
    border: none !important;
}

.region-header-row:first-child td {
    padding-top: 0 !important;
}

.region-header-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-left: 6px solid var(--accent-ortho);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.region-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.region-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.region-states {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.region-count {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Programs Without Statistics Section */
.no-stats-toggle-row td {
    padding: 0.75rem 1.5rem !important;
    border: none !important;
}

.no-stats-toggle {
    width: 100%;
    text-align: left;
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.no-stats-toggle:hover {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.no-stats-toggle span {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.no-stats-section {
    background: rgba(0, 0, 0, 0.2);
}

.no-stats-row {
    opacity: 0.7;
}

.no-stats-row:hover {
    opacity: 1;
    background: var(--bg-tertiary);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 0.5rem;
}

.empty-state .hint {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: capitalize;
    transition: all 0.2s ease;
}

.status-badge.status-clickable {
    cursor: pointer;
    border: 2px solid transparent;
}

.status-badge.status-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* VSLO Date Input - Beautiful, modern date field */
.vslo-date-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    min-width: 140px;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vslo-date-wrapper:hover {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.vslo-date-wrapper:focus-within {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.calendar-icon {
    font-size: 1.1rem;
    opacity: 0.85;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.calendar-icon:hover {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4));
}

.vslo-date-wrapper:hover .calendar-icon,
.vslo-date-wrapper:focus-within .calendar-icon {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.vslo-date-wrapper {
    position: relative;
}

.vslo-date-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.3px;
    outline: none;
    padding: 0;
    min-width: 0;
    width: 100%;
    text-align: left;
}

.vslo-date-input::placeholder {
    color: var(--text-muted);
    font-style: normal;
    opacity: 0.5;
    font-weight: 400;
}

/* Favorite Star Styling */
.favorite-star {
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}

.favorite-star:hover {
    transform: scale(1.2);
}

.favorite-star.favorited {
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Highlight favorite rows */
.programs-table tr.favorite-row {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--accent-gold);
}

.programs-table tr.favorite-row:hover {
    background: rgba(245, 158, 11, 0.12);
}

.status-badge.interested { 
    background: rgba(245, 158, 11, 0.2); 
    color: #f59e0b; 
    border-color: rgba(245, 158, 11, 0.3);
}

.status-badge.applied { 
    background: rgba(16, 185, 129, 0.25); 
    color: #10b981; 
    border-color: rgba(16, 185, 129, 0.4);
}

.status-badge.not-interested { 
    background: rgba(239, 68, 68, 0.2); 
    color: #ef4444; 
    border-color: rgba(239, 68, 68, 0.3);
}

.status-badge.interview-invited { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); }
.status-badge.interview-scheduled { background: rgba(139, 92, 246, 0.2); color: var(--accent-purple); }
.status-badge.interviewed { background: rgba(14, 165, 233, 0.2); color: var(--accent-ortho); }
.status-badge.will-rank { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.status-badge.rejected { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* DO Status Badges */
.do-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.do-badge.do-yes {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.do-badge.do-no {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.do-badge.do-unknown {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* Tier Badges */
.tier-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.tier-badge.reach {
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-obgyn);
}

.reach-row {
    background: rgba(255, 107, 157, 0.05) !important;
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.action-btn:hover {
    background: var(--bg-tertiary);
}

.action-btn.edit:hover { color: var(--accent-blue); }
.action-btn.delete:hover { color: var(--danger); }

/* ============================
   Buttons
   ============================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-ortho), var(--accent-blue));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

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

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

/* ============================
   Rank List Builder
   ============================ */

.ranklist-info {
    margin-bottom: 2rem;
}

.info-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
}

.info-box h4 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ranklist-builder {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.ranklist-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rank-pairs-container {
    min-height: 200px;
}

.rank-pair {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    cursor: grab;
    transition: all var(--transition-fast);
}

.rank-pair:hover {
    border-color: var(--border-light);
}

.rank-pair.dragging {
    opacity: 0.5;
}

.rank-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-ortho));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.pair-programs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pair-program {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pair-program.ortho {
    border-left: 3px solid var(--accent-ortho);
}

.pair-program.obgyn {
    border-left: 3px solid var(--accent-obgyn);
}

.pair-program-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pair-program-name {
    font-weight: 600;
    margin-top: 0.25rem;
}

.pair-program-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pair-connector {
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

/* ============================
   Documents Section
   ============================ */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.person-docs {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.person-docs h3 {
    font-family: var(--font-display);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.doc-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.doc-item:hover {
    background: var(--border-color);
}

.doc-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.doc-item input:checked + .checkmark {
    background: var(--success);
    border-color: var(--success);
}

.doc-item input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
}

.doc-name {
    font-size: 0.95rem;
}

.doc-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-ortho), var(--success));
    border-radius: 4px;
    transition: width var(--transition-normal);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.notes-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.notes-section h3 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.notes-section textarea {
    width: 100%;
    min-height: 150px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: vertical;
}

.notes-section textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* ============================
   Calendar Section
   ============================ */

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.interviews-timeline {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    min-height: 300px;
}

.interview-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.interview-item:hover {
    border-color: var(--border-light);
}

.interview-item.ortho {
    border-left: 4px solid var(--accent-ortho);
}

.interview-item.obgyn {
    border-left: 4px solid var(--accent-obgyn);
}

.interview-date-box {
    text-align: center;
    min-width: 70px;
}

.interview-month {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.interview-day {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.interview-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.interview-details {
    flex: 1;
}

.interview-program-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.interview-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.interview-format {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================
   Geography Section
   ============================ */

.geography-info {
    margin-bottom: 2rem;
}

.geography-grid {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    min-height: 300px;
}

.geo-region {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.geo-region:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.geo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.geo-header h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.geo-count {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.geo-programs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.geo-column h5 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.geo-program {
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ============================
   Modals
   ============================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--text-primary);
}

/* Form Styles */
form {
    padding: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.pair-selectors {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pair-selectors .form-group {
    flex: 1;
    margin-bottom: 0;
}

.pair-divider {
    font-size: 2rem;
    padding-top: 1.5rem;
}

/* ============================
   Priority Alert Section
   ============================ */

.priority-alert {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.1), rgba(255, 107, 157, 0.1));
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.priority-alert h3 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

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

.priority-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 10px;
}

.priority-number {
    width: 32px;
    height: 32px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.priority-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.priority-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================
   Auditions Section
   ============================ */

.audition-info {
    margin-bottom: 2rem;
}

.auditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.auditions-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

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

.auditions-list {
    min-height: 150px;
}

.audition-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-ortho);
    transition: all var(--transition-fast);
}

.audition-card.obgyn {
    border-left-color: var(--accent-obgyn);
}

.audition-card:hover {
    transform: translateX(4px);
}

.audition-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.audition-program-name {
    font-weight: 600;
    font-size: 1rem;
}

.audition-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.audition-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.audition-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.audition-status.planning { background: var(--bg-card); color: var(--text-muted); }
.audition-status.applied { background: rgba(77, 166, 255, 0.2); color: var(--accent-blue); }
.audition-status.accepted { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.audition-status.waitlisted { background: rgba(255, 217, 61, 0.2); color: var(--accent-gold); }
.audition-status.rejected { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.audition-status.completed { background: rgba(167, 139, 250, 0.2); color: var(--accent-purple); }

.audition-calendar {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.audition-calendar h3 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.calendar-month {
    margin-bottom: 1.5rem;
}

.calendar-month h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.calendar-entry {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    align-items: center;
}

.calendar-entry.ortho {
    border-left: 3px solid var(--accent-ortho);
}

.calendar-entry.obgyn {
    border-left: 3px solid var(--accent-obgyn);
}

.calendar-entry.overlap {
    background: linear-gradient(90deg, rgba(0, 212, 170, 0.1), rgba(255, 107, 157, 0.1));
    border: 1px solid var(--accent-gold);
}

.calendar-dates {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 120px;
}

.calendar-program {
    font-weight: 500;
}

.calendar-type {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    background: var(--bg-card);
}

/* Section subheads for documents */
.section-subhead {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1rem 0 0.75rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.section-subhead:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* LOR Strategy box */
.lor-strategy {
    margin-bottom: 2rem;
}

/* Stage label in sidebar */
.stage-label {
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ============================
   Responsive Design
   ============================ */

@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
        overflow: hidden;
    }
    
    .logo h1,
    .nav-item span:not(.nav-icon),
    .sidebar-footer {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 1rem;
    }
    
    .main-content {
        margin-left: 70px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-group input {
        min-width: 100%;
    }
    
    .programs-table-container {
        overflow-x: auto;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .pair-selectors {
        flex-direction: column;
    }
    
    .pair-divider {
        padding-top: 0;
        transform: rotate(90deg);
    }
    
    .geo-programs {
        grid-template-columns: 1fr;
    }
}

/* ============================
   Scrollbar Styles
   ============================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ============================
   Print Styles
   ============================ */

@media print {
    .sidebar,
    .btn,
    .action-btns,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================
   FREIDA Data Enhancements
   ============================ */

.freida-notice {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(77, 166, 255, 0.1));
    border: 1px solid var(--accent-ortho);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.freida-notice p {
    margin: 0;
    color: var(--text-secondary);
}

.program-type-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Residency Explorer Link */
.re-link {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent-blue);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    background: rgba(77, 166, 255, 0.1);
    border-radius: 6px;
    margin-top: 0.25rem;
    transition: var(--transition-fast);
    min-width: 140px;
    text-align: center;
    font-weight: 500;
}

.re-link:hover {
    background: rgba(77, 166, 255, 0.25);
    color: #fff;
}

.re-link-section {
    margin: 1rem 0;
}

.re-link-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Program Links Container (for table) */
.program-links {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

/* FREIDA Link Styling */
.freeda-link {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent-green);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 6px;
    transition: var(--transition-fast);
    min-width: 140px;
    text-align: center;
    font-weight: 500;
}

.freeda-link:hover {
    background: rgba(0, 212, 170, 0.25);
    color: #fff;
}

/* Sub-label for FREIDA DO% under main RE DO% in table */
.do-sub-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Program Links Container (for table) */
.program-links {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

/* FREIDA Link Styling */
.freeda-link {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent-green);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 6px;
    transition: var(--transition-fast);
    min-width: 140px;
    text-align: center;
    font-weight: 500;
}

.freeda-link:hover {
    background: rgba(0, 212, 170, 0.25);
    color: #fff;
}

/* Program Details Modal */
.program-details-modal {
    text-align: center;
}

.program-details-modal h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.program-details-modal .program-location {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.program-details-modal .program-type {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.program-details-modal .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.program-details-modal .stat-box {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.program-details-modal .stat-box.highlight {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(0, 212, 170, 0.05));
    border: 1px solid var(--accent-ortho);
}

.program-details-modal .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.program-details-modal .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ========== DUAL-STAT MODAL SECTIONS ========== */
.program-details-modal .re-section {
    background: rgba(77, 166, 255, 0.08);
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.program-details-modal .re-section h3 {
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.program-details-modal .re-section .stat-box {
    border: 1px solid rgba(77, 166, 255, 0.3);
}

.program-details-modal .freida-section {
    background: rgba(0, 212, 170, 0.08);
    border: 2px solid var(--accent-green);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.program-details-modal .freida-section h3 {
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.program-details-modal .freida-section .stat-box {
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.program-details-modal .stats-section .stats-grid {
    margin-bottom: 0;
}

.program-details-modal .vslo-info {
    background: rgba(255, 217, 61, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.program-details-modal .program-notes {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--text-secondary);
}

.program-details-modal .freida-link {
    margin-bottom: 1.5rem;
}

.program-details-modal .freida-link a {
    color: var(--accent-blue);
    text-decoration: none;
}

.program-details-modal .freida-link a:hover {
    text-decoration: underline;
}

.program-details-modal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Login Modal Styling */
#login-modal {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

#login-modal .modal-content {
    background: var(--bg-card);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#login-modal h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

#login-modal input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

#login-modal input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Calendar Modal Styling */
.calendar-modal-content {
    max-width: 400px;
    padding: 1.5rem;
}

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

.calendar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.calendar-nav-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    user-select: none;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.calendar-day:hover:not(.empty) {
    background: var(--bg-card);
    border-color: var(--accent-blue);
    transform: scale(1.1);
}

.calendar-day.today {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--accent-blue);
    color: white;
    font-weight: 600;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.calendar-day.selected:hover {
    background: var(--accent-blue);
    transform: scale(1.05);
}

.calendar-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Sortable Column Headers */
.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all var(--transition-fast);
}

.sortable-header:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.sort-indicator {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.7rem;
    opacity: 0.4;
    transition: all var(--transition-fast);
    vertical-align: middle;
}

.sortable-header:hover .sort-indicator {
    opacity: 0.8;
}

.sort-indicator.active {
    opacity: 1;
    color: var(--accent-blue);
}

.sort-indicator.desc {
    transform: rotate(180deg);
}

/* Row click styling */
.programs-table tbody tr {
    cursor: pointer;
    transition: background var(--transition-fast);
}

.programs-table tbody tr:hover {
    background: rgba(0, 212, 170, 0.1);
}

/* Reach row styling */
.reach-row {
    background: rgba(255, 217, 61, 0.05);
    border-left: 3px solid var(--accent-gold);
}

.reach-row:hover {
    background: rgba(255, 217, 61, 0.12) !important;
}
