:root {
    /* Brand Variant 4 - Executive Color System */
    --executive-navy: #1a365d;
    --leadership-blue: #2b77cb;
    --insight-teal: #0d9488;
    --success-green: #065f46;
    --warning-amber: #d97706;
    --danger-red: #dc2626;
    --neutral-slate: #475569;
    --background-gray: #f8fafc;
    --premium-gold: #f59e0b;
    
    /* Card System Colors - Optimized shadows for performance */
    --card-background: #ffffff;
    --card-border: #e2e8f0;
    --premium-shadow: 0 8px 25px rgba(0,0,0,0.08), 0 3px 6px rgba(0,0,0,0.04);
    --hover-shadow: 0 16px 45px rgba(0,0,0,0.12), 0 6px 12px rgba(0,0,0,0.08);
    --subtle-shadow: 0 2px 8px rgba(0,0,0,0.06);
    
    /* Legacy Compatibility (mapped to Brand Variant 4) */
    --primary-blue: var(--leadership-blue);
    --warm-charcoal: var(--neutral-slate);
    --growth-green: var(--success-green);
    --development-orange: var(--warning-amber);
    --soft-background: var(--background-gray);
    --card-white: var(--card-background);
    --text-primary: var(--executive-navy);
    --text-secondary: var(--neutral-slate);
    --border-light: var(--card-border);
    --success-green: var(--success-green);
    --warning-yellow: var(--premium-gold);
    --error-red: var(--danger-red);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-gray);
    color: var(--text-primary);
    line-height: 1.6;
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px 0;
    border-bottom: 2px solid var(--border-light);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.header-actions {
    display: flex;
    gap: 12px;
}

/* Dashboard Grid - Mobile Optimized */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    align-items: start;
    /* Performance optimization for large grids */
    contain: layout style;
}

/* Card Styles - Optimized for 60fps performance */
.card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--premium-shadow);
    border: 1px solid var(--card-border);
    /* Optimized transitions - only animate specific properties */
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.2, 0, 0.2, 1),
                border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    /* GPU acceleration for smooth animations */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.card:hover {
    /* Hardware-accelerated transform for 60fps */
    transform: translate3d(0, -6px, 0);
    box-shadow: var(--hover-shadow);
    border-color: var(--leadership-blue);
}

.card h2, .card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Button Styles */
.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    /* Optimized button transitions for performance */
    transition: background-color 0.15s ease, 
                transform 0.15s cubic-bezier(0.2, 0, 0.2, 1),
                box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    /* GPU acceleration for buttons */
    will-change: transform;
    transform: translateZ(0);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--soft-background);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    /* Optimized secondary button transitions */
    transition: background-color 0.15s ease, 
                border-color 0.15s ease,
                color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    will-change: background-color;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Stats Card */
.stats-card {
    grid-column: span 2;
}

/* Lazy Loading Classes for Performance */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card {
        padding: 20px;
        /* Reduce animation complexity on mobile */
        transition: transform 0.2s ease, 
                    box-shadow 0.2s ease,
                    border-color 0.2s ease;
    }
    
    .card:hover {
        /* Lighter hover effect on mobile for better performance */
        transform: translate3d(0, -3px, 0);
    }
    
    /* Reduce shadow complexity on mobile */
    :root {
        --premium-shadow: 0 4px 12px rgba(0,0,0,0.08);
        --hover-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    
    /* Performance optimization for mobile scrolling */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    .stats-card {
        grid-column: span 1;
    }
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--soft-background);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Conversation List */
.conversation-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.conversation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--soft-background);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.conversation-item:hover {
    background: white;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.conversation-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.conversation-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    gap: 16px;
}

.conversation-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Status Badges */
.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

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

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.empty-state p {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* Coaching Insight Styles */
.coaching-insight {
    border-left: 5px solid var(--growth-green);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

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

.insight-badge {
    background: var(--growth-green);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.insight-content {
    color: var(--text-primary);
}

.insight-placeholder p {
    margin-bottom: 12px;
}

.insight-tip {
    color: var(--development-orange);
    font-style: italic;
}

/* Insight Metrics */
.insight-metrics {
    margin-top: 24px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.metric-label {
    min-width: 140px;
    font-weight: 500;
    color: var(--text-primary);
}

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

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--growth-green), var(--success-green));
    transition: width 0.3s ease;
}

/* Leadership Dimensions */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.dimension-item {
    text-align: center;
    padding: 20px;
    background: var(--soft-background);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.dimension-item:hover {
    background: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dimension-icon {
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.dimension-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.dimension-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-card {
        grid-column: span 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .conversation-item {
        flex-direction: column;
        gap: 16px;
    }
    
    .dimensions-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Additional coaching-focused styles */
h1, h2, h3 {
    color: var(--text-primary);
}

.leadership-score {
    font-weight: 700;
    color: var(--growth-green);
}

.development-area {
    color: var(--development-orange);
    font-weight: 500;
}

/* Accessibility improvements */
button:focus, .card:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-light);
    }
}

/* Prominent Record 1:1 Link in Sidebar */
.nav-item[href*="record"] {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: white !important;
    font-weight: 600;
    margin: 0.25rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item[href*="record"]:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.nav-item[href*="record"] svg {
    color: white !important;
    stroke: white !important;
}

.nav-item[href*="record"].active {
    background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
    border-right-color: white;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON (FAB) - Recording
   ═══════════════════════════════════════════════════════════════ */

.fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5);
    text-decoration: none;
    color: white;
}

.fab svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke: white;
}

/* Hide FAB on very small mobile screens to avoid blocking content */
@media (max-width: 480px) {
    .fab {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .fab svg {
        width: 24px;
        height: 24px;
    }
}

/* Cancel Commitment Modal (matches Discard Session modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.15s ease-out;
}

.modal-dialog {
    max-width: 480px;
    width: 90%;
    margin: 1rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.2s ease-out;
}

.modal-icon {
    margin: 0 auto 1.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem 0;
}

.modal-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.modal-btn-cancel,
.modal-btn-confirm {
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-btn-cancel {
    background: white;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.modal-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.modal-btn-confirm {
    background: #dc2626;
    color: white;
    border: 1.5px solid #dc2626;
}

.modal-btn-confirm:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

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

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