/**
 * DevOps Coach Styles
 * 
 * Premium polished UI design for professional learning platform
 * Enhanced with advanced animations, glassmorphism, and micro-interactions
 * Multi-theme support with neutral and brand color options
 * 
 * @package DevOps_Coach
 * @since 2.0.2
 */

/* ========================================
   CORE STYLES - MODERN UI
   ======================================== */
/* Scoped reset - only affects elements inside the plugin container */
.devops-coach-container *,
.devops-coach-container *::before,
.devops-coach-container *::after {
    box-sizing: border-box;
}

.devops-coach-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: 
        radial-gradient(circle at 20% 50%, rgba(71, 85, 105, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(71, 85, 105, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    
    /* Scoped CSS variables - only apply within plugin container */
    --primary-gradient: linear-gradient(135deg, #475569 0%, #334155 100%);
    --primary-color: #475569;
    --primary-dark: #334155;
    --primary-light: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-brand: 0 4px 12px rgba(71, 85, 105, 0.25);
    --shadow-brand-lg: 0 8px 24px rgba(71, 85, 105, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

.devops-coach-container::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(71, 85, 105, 0.01) 2px, rgba(71, 85, 105, 0.01) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(71, 85, 105, 0.01) 2px, rgba(71, 85, 105, 0.01) 4px);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.devops-coach-container .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   THEME: CHARCOAL (Sophisticated Dark Gray)
   ======================================== */
.devops-coach-container.theme-charcoal {
    --primary-gradient: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --primary-color: #374151;
    --primary-dark: #1f2937;
    --primary-light: #4b5563;
    --shadow-brand: 0 4px 12px rgba(55, 65, 81, 0.25);
    --shadow-brand-lg: 0 8px 24px rgba(55, 65, 81, 0.2);
}

/* ========================================
   THEME: MIDNIGHT BLUE (Deep Professional Blue)
   ======================================== */
.devops-coach-container.theme-midnight {
    --primary-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --primary-color: #1e293b;
    --primary-dark: #0f172a;
    --primary-light: #334155;
    --shadow-brand: 0 4px 12px rgba(30, 41, 59, 0.25);
    --shadow-brand-lg: 0 8px 24px rgba(30, 41, 59, 0.2);
}

/* ========================================
   THEME: SLATE (Cool Professional Gray)
   ======================================== */
.devops-coach-container.theme-slate {
    --primary-gradient: linear-gradient(135deg, #475569 0%, #334155 100%);
    --primary-color: #475569;
    --primary-dark: #334155;
    --primary-light: #64748b;
    --shadow-brand: 0 4px 12px rgba(71, 85, 105, 0.25);
    --shadow-brand-lg: 0 8px 24px rgba(71, 85, 105, 0.2);
}

/* ========================================
   THEME: NAVY (Professional Dark Blue)
   ======================================== */
.devops-coach-container.theme-navy {
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #2563eb;
    --shadow-brand: 0 4px 12px rgba(30, 58, 138, 0.25);
    --shadow-brand-lg: 0 8px 24px rgba(30, 58, 138, 0.2);
}

/* ========================================
   THEME: GRAPHITE (Warm Dark Gray)
   ======================================== */
.devops-coach-container.theme-graphite {
    --primary-gradient: linear-gradient(135deg, #3f3f46 0%, #27272a 100%);
    --primary-color: #3f3f46;
    --primary-dark: #27272a;
    --primary-light: #52525b;
    --shadow-brand: 0 4px 12px rgba(63, 63, 70, 0.25);
    --shadow-brand-lg: 0 8px 24px rgba(63, 63, 70, 0.2);
}

/* ========================================
   THEME: STEEL (Cool Professional Gray)
   ======================================== */
.devops-coach-container.theme-steel {
    --primary-gradient: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
    --primary-color: #52525b;
    --primary-dark: #3f3f46;
    --primary-light: #71717a;
    --shadow-brand: 0 4px 12px rgba(82, 82, 91, 0.25);
    --shadow-brand-lg: 0 8px 24px rgba(82, 82, 91, 0.2);
}

/* ========================================
   THEME: OBSIDIAN (Deep Black-Gray)
   ======================================== */
.devops-coach-container.theme-obsidian {
    --primary-gradient: linear-gradient(135deg, #18181b 0%, #09090b 100%);
    --primary-color: #18181b;
    --primary-dark: #09090b;
    --primary-light: #27272a;
    --shadow-brand: 0 4px 12px rgba(24, 24, 27, 0.3);
    --shadow-brand-lg: 0 8px 24px rgba(24, 24, 27, 0.25);
}

/* ========================================
   THEME: STONE (Warm Neutral Gray)
   ======================================== */
.devops-coach-container.theme-stone {
    --primary-gradient: linear-gradient(135deg, #57534e 0%, #44403c 100%);
    --primary-color: #57534e;
    --primary-dark: #44403c;
    --primary-light: #78716c;
    --shadow-brand: 0 4px 12px rgba(87, 83, 78, 0.25);
    --shadow-brand-lg: 0 8px 24px rgba(87, 83, 78, 0.2);
}

/* ========================================
   THEME: PROFESSIONAL BLUE (Muted)
   ======================================== */
.devops-coach-container.theme-blue {
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #2563eb;
    --shadow-brand: 0 4px 12px rgba(30, 64, 175, 0.25);
    --shadow-brand-lg: 0 8px 24px rgba(30, 64, 175, 0.2);
}

/* ========================================
   NEW MODERN UI COMPONENTS
   ======================================== */
.devops-coach-container .header {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%),
        radial-gradient(circle at top right, rgba(71, 85, 105, 0.05) 0%, transparent 70%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
    z-index: 10;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--primary-color) 20%,
        var(--primary-dark) 50%,
        var(--primary-color) 80%,
        transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.devops-coach-container .header:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(0);
    border-color: rgba(71, 85, 105, 0.2);
}

.header:hover::before {
    left: 100%;
}

.header:hover::after {
    transform: scaleX(1);
}

.header-left h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.header-left h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    opacity: 0.6;
}

.header-left p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.devops-coach-container .header-right {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Theme Selector */
.theme-selector-wrapper {
    position: relative;
    z-index: 1001;
}

.theme-selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    z-index: 1001;
    overflow: visible;
    animation: slideDown 0.2s ease-out;
    pointer-events: auto;
}

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

.theme-selector-header {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #1a202c;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.theme-options {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: visible;
    position: relative;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
    pointer-events: auto;
    position: relative;
    z-index: 1002;
}

.theme-option:hover {
    background: var(--bg-secondary);
    transform: translateX(2px);
}

.theme-option.active {
    background: var(--bg-tertiary);
}

.theme-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.theme-option:hover .theme-preview {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-option.active .theme-preview {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.theme-name {
    font-size: 14px;
    color: #1a202c;
    font-weight: 500;
}

.devops-coach-container .btn {
    padding: 11px 22px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 14px rgba(71, 85, 105, 0.3),
        0 2px 6px rgba(71, 85, 105, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(71, 85, 105, 0.45),
        0 6px 16px rgba(71, 85, 105, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(71, 85, 105, 0.1);
    filter: brightness(1.12) saturate(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 
        0 4px 14px rgba(71, 85, 105, 0.3),
        0 2px 6px rgba(71, 85, 105, 0.2);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(71, 85, 105, 0.3),
        0 8px 24px rgba(71, 85, 105, 0.4),
        0 4px 12px rgba(71, 85, 105, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 71, 85, 105), 0.1);
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Quick Actions card (first card) spans full width */
.main-grid .card:first-child {
    grid-column: 1 / -1;
}

/* Progress card (second card if exists) also full width */
.main-grid .card:nth-child(2) {
    grid-column: 1 / -1;
}

.devops-coach-container .card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%),
        radial-gradient(circle at top left, rgba(71, 85, 105, 0.03) 0%, transparent 50%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(71, 85, 105, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.devops-coach-container .card:hover {
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 1px rgba(71, 85, 105, 0.08);
    border-color: rgba(71, 85, 105, 0.25);
    transform: translateY(-4px) scale(1.01);
}

.card:hover::before {
    opacity: 1;
    animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.card:hover::after {
    transform: scaleY(1);
    box-shadow: 2px 0 12px rgba(71, 85, 105, 0.3);
}

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

.devops-coach-container .card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

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

/* Hide quick actions container if empty */
.quick-actions:empty {
    display: none;
}

.action-card,
button.action-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.95) 100%) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-left: 5px solid var(--primary-color) !important;
    border-radius: var(--radius-md);
    padding: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    color: inherit !important;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 8px rgba(71, 85, 105, 0.3);
}

.action-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(71, 85, 105, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    overflow: hidden;
}

.action-card:hover,
button.action-card:hover {
    transform: translateY(-1px) translateX(1px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.12),
        0 6px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-left-color: var(--primary-dark) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.98) 100%) !important;
    border-color: rgba(71, 85, 105, 0.25) !important;
}

.action-card:hover::before {
    transform: scaleY(1);
    box-shadow: 3px 0 12px rgba(71, 85, 105, 0.4);
}

.action-card:hover::after {
    opacity: 1;
}

.action-card.green {
    border-left-color: var(--success-color) !important;
    background: #ffffff !important;
}

.action-card.green:hover {
    border-left-color: #059669 !important;
    background: rgba(16, 185, 129, 0.05) !important;
}

.action-card.orange {
    border-left-color: var(--warning-color) !important;
    background: #ffffff !important;
}

.action-card.orange:hover {
    border-left-color: #d97706 !important;
    background: rgba(245, 158, 11, 0.05) !important;
}

.action-card.teal {
    border-left-color: #0d9488 !important;
    background: #ffffff !important;
}

.action-card.teal:hover {
    border-left-color: #0f766e !important;
    background: rgba(14, 116, 144, 0.05) !important;
}

.action-icon {
    font-size: 32px;
    margin-bottom: 14px;
    color: var(--primary-color) !important;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(71, 85, 105, 0.2));
    position: relative;
    text-shadow: 0 2px 8px rgba(71, 85, 105, 0.15);
}

.action-card:hover .action-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(71, 85, 105, 0.4));
    text-shadow: 0 4px 12px rgba(71, 85, 105, 0.25);
}

.action-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c !important;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.action-card:hover .action-title {
    color: #0f172a !important;
}

.action-subtitle {
    font-size: 14px;
    color: #4a5568 !important;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.action-card:hover .action-subtitle {
    color: #334155 !important;
}

.progress-section {
    display: grid;
    gap: 16px;
}

.progress-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-base);
    position: relative;
}

.progress-item:hover {
    background: var(--bg-primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateX(2px);
    border-left-width: 5px;
}

.progress-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.devops-coach-container .progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 6px rgba(71, 85, 105, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 6px 6px 0 0;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(-20deg); }
    100% { transform: translateX(100%) skewX(-20deg); }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.stat-box {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.95) 100%);
    padding: 22px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.stat-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(71, 85, 105, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    overflow: hidden;
}

.stat-box:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.98) 100%);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-box:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.content-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 0;
}

/* Ensure content section hides when empty */
.content-section:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.content-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.content-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-color: rgba(var(--primary-color-rgb, 71, 85, 105), 0.2);
}

.content-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.content-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.content-card:hover .content-icon {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.content-card:hover .content-icon::before {
    opacity: 1;
}

.icon-purple {
    background: var(--primary-gradient);
}

.icon-blue {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.icon-green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.icon-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.content-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.content-count {
    font-size: 13px;
    color: #718096;
}

.content-list {
    list-style: none;
}

.content-item {
    padding: 18px 20px;
    background: 
        linear-gradient(135deg, rgba(247, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.content-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 0 3px 3px 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 8px rgba(71, 85, 105, 0.3);
}

.content-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(71, 85, 105, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    overflow: hidden;
}

.content-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.95) 100%);
    border-color: rgba(71, 85, 105, 0.2);
    transform: translateX(6px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 3px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding-left: 24px;
}

.content-item:hover::before {
    height: 70%;
    box-shadow: 3px 0 12px rgba(71, 85, 105, 0.4);
}

.content-item:hover::after {
    opacity: 1;
}

.item-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.item-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.empty-state {
    text-align: center;
    padding: 32px;
    color: #a0aec0;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.view-all {
    text-align: center;
    margin-top: 16px;
}

.devops-coach-container .view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.devops-coach-container .view-all-link:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.recent-activity {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.recent-activity:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
}

#recent-activity-items .activity-item {
/* Scoped 2026-08-16: these generic .activity-* names collided with BuddyBoss activity feeds
   (li.activity-item) and broke group/activity layout site-wide. Keep them scoped. */
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

#recent-activity-items .activity-item:hover {
    background: var(--bg-primary);
    border-color: var(--border-color);
    transform: translateX(2px);
}

#recent-activity-items .activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

#recent-activity-items .activity-content {
    flex: 1;
}

#recent-activity-items .activity-title {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}

#recent-activity-items .activity-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ========================================
   FORM ELEMENTS - POLISHED STYLING
   ======================================== */
.devops-coach-container input[type="text"],
.devops-coach-container input[type="email"],
.devops-coach-container input[type="password"],
.devops-coach-container input[type="number"],
.devops-coach-container input[type="search"],
.devops-coach-container textarea,
.devops-coach-container select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    line-height: 1.5;
}

.devops-coach-container input[type="text"]:focus,
.devops-coach-container input[type="email"]:focus,
.devops-coach-container input[type="password"]:focus,
.devops-coach-container input[type="number"]:focus,
.devops-coach-container input[type="search"]:focus,
.devops-coach-container textarea:focus,
.devops-coach-container select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 71, 85, 105), 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    background: var(--bg-primary);
}

.devops-coach-container textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.devops-coach-container select {
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    appearance: none;
}

.devops-coach-container label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.devops-coach-container input[type="radio"],
.devops-coach-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin-right: 8px;
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}


/* Prevent horizontal scrollbar - merged with main container rule above */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ========================================
   ENHANCED SCROLLBARS - GLOBAL
   ======================================== */
.devops-coach-container *::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.devops-coach-container *::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.5) 0%, rgba(226, 232, 240, 0.5) 100%);
    border-radius: 6px;
    margin: 4px;
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.devops-coach-container *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.devops-coach-container *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.devops-coach-container *::-webkit-scrollbar-thumb:active {
    background: var(--primary-dark);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Firefox scrollbar */
.devops-coach-container * {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(241, 245, 249, 0.5);
}

/* Personalized overview */
.learning-overview-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.learning-overview-card:hover {
    box-shadow:
        var(--shadow-xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        var(--shadow-brand);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

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

.overview-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #1f2937;
}

.overview-subtitle {
    margin: 4px 0 0 0;
    color: #475569;
    font-size: 0.95rem;
}

.overview-xp {
    text-align: right;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    color: #4338ca;
    min-width: 130px;
}

.overview-xp span {
    display: block;
    font-size: 1.1rem;
}

.overview-xp small {
    display: block;
    color: #6366f1;
    font-size: 0.85rem;
}

.overview-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.overview-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 150px;
}

.overview-section h4 {
    margin: 0;
    font-size: 1rem;
    color: #334155;
}

.overview-section-body {
    flex: 1;
    color: #475569;
    font-size: 0.95rem;
}

.overview-title {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #1f2937;
}

.overview-meta {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.overview-placeholder {
    margin: 0;
    color: #94a3b8;
}

.overview-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.overview-achievement {
    display: flex;
    gap: 10px;
    align-items: center;
}

.overview-achievement .icon {
    font-size: 1.3rem;
}

.overview-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: capitalize;
    background: #e2e8f0;
    color: #0f172a;
}

.overview-pill.difficulty-beginner {
    background: #dcfce7;
    color: #166534;
}

.overview-pill.difficulty-intermediate {
    background: #fef3c7;
    color: #92400e;
}

.overview-pill.difficulty-advanced {
    background: #fee2e2;
    color: #991b1b;
}

.context-tips-card {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(226, 232, 240, 0.35);
    padding: 14px 18px;
    margin-bottom: 16px;
}

.tips-header {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.context-tips-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
}

.context-tips-list li {
    margin-bottom: 6px;
}

.insights-card {
    margin-top: 20px;
}

.insights-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: #475569;
}

.insights-summary span {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
}

.insights-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 160px;
    border-radius: 12px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.8);
}

.insights-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.insights-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    position: relative;
    min-height: 8px;
}

.insights-bar span {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #4338ca;
    font-weight: 600;
}

.insights-label {
    font-size: 0.8rem;
    color: #475569;
}

.insights-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

.insights-loading {
    width: 100%;
    text-align: center;
    color: #64748b;
    margin: 0;
}

.devops-coach-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

@media (max-width: 1020px) {
    .devops-coach-layout {
        grid-template-columns: 1fr;
    }

    .devops-coach-sidebar {
        order: -1;
    }
}

@media (max-width: 720px) {
    .devops-coach-main {
        padding: 24px;
    }

    .lms-action-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .lms-action-buttons button {
        flex: 1 1 calc(50% - 10px);
    }
}

/* Container */
.devops-coach-container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
}

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

.devops-coach-container h2 {
    margin: 0 0 40px 0;
    color: var(--text-primary);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    position: relative;
    padding-bottom: 16px;
}

.devops-coach-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    opacity: 0.8;
}

/* Layout Grid */
.devops-coach-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* When sidebar is hidden, main content expands to full width */
.devops-coach-layout.sidebar-hidden {
    grid-template-columns: 1fr;
}

/* Main Content Area */
.devops-coach-main {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.devops-coach-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.devops-coach-main:hover {
    box-shadow:
        var(--shadow-xl),
        0 0 0 1px var(--primary-color),
        var(--shadow-brand);
    transform: translateY(-3px);
}

.devops-coach-main:hover::before {
    opacity: 1;
}

/* Sidebar - AI Assistant */
.devops-coach-sidebar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(102, 126, 234, 0.05);
    padding: 35px;
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-base);
}

.devops-coach-sidebar:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-header h3 {
    margin: 0 0 15px 0;
    color: #1a202c;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.ai-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    box-shadow: var(--shadow-brand);
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: var(--shadow-brand);
    }
    50% {
        box-shadow: var(--shadow-brand-lg);
    }
}

.ai-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    filter: blur(8px);
    z-index: -1;
}

.ai-avatar:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: var(--shadow-brand-lg);
    animation-play-state: paused;
}

.ai-avatar:hover::before {
    opacity: 0.6;
}

.ai-avatar:active {
    transform: scale(1.02) rotate(2deg);
}

/* Settings */
.devops-coach-settings {
    margin-bottom: 25px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.devops-coach-settings label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Chat Messages */
.chat-messages {
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 28px;
    padding-right: 14px;
    scroll-behavior: smooth;
}

.chat-message {
    margin-bottom: 28px;
    animation: messageSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-message .message-content {
    background: var(--primary-gradient);
    padding: 18px 22px;
    border-radius: var(--radius-lg) var(--radius-lg) 6px var(--radius-lg);
    color: #ffffff;
    font-size: 15px;
    line-height: 1.65;
    margin-left: auto;
    max-width: 80%;
    float: right;
    clear: both;
    box-shadow:
        var(--shadow-brand),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
}

.user-message .message-content:hover {
    box-shadow:
        var(--shadow-brand-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px) scale(1.01);
}

.assistant-message .message-content {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 24px 26px;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 6px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.75;
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
}

.assistant-message .message-content:hover {
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) scale(1.005);
    border-color: var(--primary-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.message-header strong {
    color: #4a5568;
    font-weight: 700;
    font-size: 14px;
}

/* Mathematics Coach - Header styling */
.math-coach-message .message-header strong {
    color: #ffffff !important;
}

.math-coach-message .message-time {
    color: rgba(255, 255, 255, 0.7) !important;
}

.user-message .message-header strong {
    color: rgba(255, 255, 255, 0.9);
}

.message-time {
    color: #a0aec0;
    font-size: 12px;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.devops-coach-container .error-message {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 15px;
    color: #c53030;
}

.welcome-message {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-brand-lg);
    position: relative;
    overflow: hidden;
    animation: welcomePulse 3s ease-in-out infinite;
}

.welcome-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: welcomeRotate 20s linear infinite;
}

@keyframes welcomeRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes welcomePulse {
    0%, 100% {
        box-shadow: var(--shadow-brand-lg);
    }
    50% {
        box-shadow: var(--shadow-brand-lg);
        transform: scale(1.01);
    }
}

.welcome-message .message-header {
    position: relative;
    z-index: 1;
}

.welcome-message .message-header strong {
    color: #ffffff;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-message .message-content {
    color: #ffffff;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Markdown Content Styling */
.message-content h1,
.message-content h2,
.message-content h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #1a202c;
    font-weight: 600;
}

.message-content h1 {
    font-size: 24px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.message-content h2 {
    font-size: 20px;
}

.message-content h3 {
    font-size: 18px;
}

.message-content p {
    margin: 12px 0;
}

.message-content ul,
.message-content ol {
    margin: 12px 0;
    padding-left: 25px;
}

.message-content li {
    margin: 6px 0;
    line-height: 1.6;
}

.message-content code {
    background: #2d3748;
    color: #68d391;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.message-content pre {
    background: #2d3748 !important;
    border-radius: 8px;
    padding: 16px !important;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid #4a5568;
}

.message-content pre code {
    background: transparent !important;
    padding: 0 !important;
    color: #e2e8f0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: block !important;
    white-space: pre !important;
}

.message-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 16px;
    margin: 16px 0;
    color: #4a5568;
    font-style: italic;
}

.message-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.message-content a:hover {
    border-bottom-color: #667eea;
}

.message-content strong {
    font-weight: 600;
    color: #1a202c;
}

.message-content em {
    font-style: italic;
}

.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.message-content table th,
.message-content table td {
    padding: 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.message-content table th {
    background: #f7fafc;
    font-weight: 600;
}

/* Chat Input */
.chat-input-container {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.user-prompt {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    max-height: 300px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.user-prompt::placeholder {
    color: var(--text-muted);
    font-style: italic;
    transition: opacity var(--transition-base);
}

.user-prompt:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-prompt:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 4px rgba(var(--primary-color), 0.1),
        0 8px 16px rgba(0, 0, 0, 0.06),
        var(--shadow-brand);
    background: #ffffff;
    transform: translateY(-1px);
}

.user-prompt:focus::placeholder {
    opacity: 0.6;
}

@keyframes inputFocusGlow {
    0% {
        box-shadow: 0 0 0 0 var(--primary-light), 0 0 0 var(--primary-light);
    }
    50% {
        box-shadow: 0 0 0 4px var(--primary-light), 0 4px 12px var(--primary-light);
    }
    100% {
        box-shadow: 0 0 0 4px var(--primary-light), 0 4px 12px var(--primary-light);
    }
}

.send-prompt-btn {
    padding: 18px 36px;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow:
        var(--shadow-brand),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    -webkit-font-smoothing: antialiased;
}

.send-prompt-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.send-prompt-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-brand-lg), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.05);
}

.send-prompt-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: var(--shadow-brand);
}

.send-prompt-btn:active::before {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

.send-prompt-btn:disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
    filter: none;
}

.send-prompt-btn:disabled::before {
    display: none;
}

/* Loading Indicator */
.loading-indicator {
    margin-top: 20px;
    padding: 20px 28px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow:
        var(--shadow-brand-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    animation: loadingPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.loading-indicator::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loadingShimmer 2s infinite;
}

@keyframes loadingShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.loading-indicator::before {
    content: '⏳';
    font-size: 20px;
    animation: loadingSpin 2s linear infinite;
    display: inline-block;
}

.loading-indicator span::after {
    content: '...';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: var(--shadow-brand);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.02);
        box-shadow: var(--shadow-brand-lg);
    }
}

@keyframes loadingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
    margin: 4px 0;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e0 0%, #a0aec0 100%);
    border-radius: 4px;
    border: 2px solid var(--bg-secondary);
    transition: all var(--transition-base);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-light);
    box-shadow: 0 0 6px var(--primary-light);
}

.chat-messages::-webkit-scrollbar-thumb:active {
    background: var(--primary-dark);
}

/* Syntax Highlighting Enhancements */
pre[class*="language-"] {
    margin: 16px 0;
    border-radius: 8px;
    background: #2d3748 !important;
    padding: 16px !important;
    overflow-x: auto;
}

code[class*="language-"] {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: #e2e8f0 !important;
    text-shadow: none !important;
}

/* Ensure code blocks inside message content are visible */
.message-content pre[class*="language-"],
.message-content pre code[class*="language-"],
.assistant-message pre,
.assistant-message pre code,
.chat-message pre,
.chat-message pre code,
.chat-message code[class*="language-"],
div.message-content > pre,
div.message-content > pre > code {
    color: #e2e8f0 !important;
    background: #2d3748 !important;
}

/* Additional specific overrides for any nested elements */
.message-content pre *,
.assistant-message pre *,
.chat-message pre * {
    color: inherit !important;
}

/* Override Prism theme if needed */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #7c8b9a !important;
}

.token.punctuation {
    color: #c792ea !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f78c6c !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #c3e88d !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #89ddff !important;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #c792ea !important;
}

.token.function,
.token.class-name {
    color: #82aaff !important;
}

.token.regex,
.token.important,
.token.variable {
    color: #f78c6c !important;
}

/* Copy Code Button */
.message-content pre {
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.copy-code-btn:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-light);
    transform: translateY(-2px) scale(1.05);
}

.copy-code-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.copy-code-btn.copied {
    background: linear-gradient(135deg, var(--success-color) 0%, #38a169 100%);
    color: #ffffff;
    border-color: var(--success-color);
    animation: copySuccess 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .devops-coach-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .devops-coach-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .devops-coach-sidebar {
        position: static;
        order: -1;
        margin-bottom: 0;
    }

    .ai-avatar {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .devops-coach-main,
    .devops-coach-sidebar {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .devops-coach-container {
        margin: 20px auto;
        padding: 0 16px;
    }

    .devops-coach-container h2 {
        font-size: 32px;
        margin-bottom: 28px;
        letter-spacing: -0.8px;
    }

    .devops-coach-container h2::after {
        width: 60px;
        height: 3px;
    }

    .devops-coach-main,
    .devops-coach-sidebar {
        padding: 28px;
        border-radius: var(--radius-lg);
    }

    .devops-coach-main:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-1px);
    }

    .chat-messages {
        max-height: 500px;
        padding-right: 8px;
    }

    .chat-message {
        margin-bottom: 20px;
    }

    .chat-input-container {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .send-prompt-btn {
        width: 100%;
        padding: 16px;
    }

    .user-message .message-content {
        max-width: 90%;
        padding: 14px 18px;
    }

    .assistant-message .message-content {
        padding: 18px 20px;
    }

    .lms-action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .lms-action-buttons button {
        width: 100%;
        min-width: auto;
    }

    .dashboard-card {
        padding: 20px;
        margin-bottom: 18px;
    }

    .level-card h3 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .devops-coach-container h2 {
        font-size: 24px;
    }

    .devops-coach-main,
    .devops-coach-sidebar {
        padding: 18px;
    }

    .ai-avatar {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .sidebar-header h3 {
        font-size: 20px;
    }

    .chat-input-container {
        padding: 15px;
    }

    .user-prompt {
        min-height: 50px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .devops-coach-settings,
    .chat-input-container,
    .loading-indicator,
    .send-prompt-btn,
    .devops-coach-sidebar {
        display: none;
    }

    .devops-coach-layout {
        grid-template-columns: 1fr;
    }

    .chat-messages {
        max-height: none;
        overflow: visible;
    }
}

/* Admin Settings Page Styles */
.devops-coach-settings-intro {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.devops-coach-settings-intro p {
    margin: 10px 0;
    color: #4a5568;
}

.devops-coach-settings-intro ul {
    margin: 15px 0;
    padding-left: 25px;
}

.devops-coach-settings-intro li {
    margin: 8px 0;
    color: #2d3748;
}




/* ========================================
   LMS Action Buttons
   ======================================== */

.lms-action-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.lms-action-buttons button {
    flex: 1;
    min-width: 185px;
    padding: 16px 26px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lms-action-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.lms-action-buttons button:hover::before {
    left: 100%;
}

#view-progress-btn,
#request-project-btn,
#generate-quiz-btn,
#browse-templates-btn,
#review-flashcards-btn,
#generate-flashcards-btn,
#view-learning-paths-btn,
#view-concept-map-btn,
#extract-concepts-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow:
        var(--shadow-brand),
        0 1px 0 0 rgba(255, 255, 255, 0.1) inset;
}

#view-progress-btn:hover,
#request-project-btn:hover,
#generate-quiz-btn:hover,
#browse-templates-btn:hover,
#review-flashcards-btn:hover,
#generate-flashcards-btn:hover,
#view-learning-paths-btn:hover,
#view-concept-map-btn:hover,
#extract-concepts-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        var(--shadow-brand-lg),
        0 1px 0 0 rgba(255, 255, 255, 0.2) inset;
}

#view-progress-btn:active,
#request-project-btn:active,
#generate-quiz-btn:active,
#browse-templates-btn:active,
#review-flashcards-btn:active,
#generate-flashcards-btn:active,
#view-learning-paths-btn:active,
#view-concept-map-btn:active,
#extract-concepts-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: var(--shadow-md);
}

#generate-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand-lg);
}

/* ========================================
   LMS Features - Progress Dashboard
   ======================================== */

.devops-coach-dashboard {
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(102, 126, 234, 0.08);
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.2);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.level-card {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-brand-lg);
    border: none;
}

.level-card:hover {
    box-shadow: var(--shadow-brand-lg);
    transform: translateY(-1px);
}

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

.level-card h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.xp-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.devops-coach-container .progress-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 8px;
    transition: width 0.6s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.devops-coach-container .progress-text {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
    font-weight: 500;
}

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

.stat-card {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--primary-light);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

/* Achievements */
.achievements-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a202c;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.achievement-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.achievement-info strong {
    display: block;
    color: #1a202c;
    margin-bottom: 4px;
}

.achievement-info p {
    margin: 0 0 4px 0;
    color: #4a5568;
    font-size: 14px;
}

.achievement-info small {
    color: #a0aec0;
    font-size: 12px;
}

/* ========================================
   Projects
   ======================================== */

.projects-section {
    margin-top: 30px;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.2);
}

.project-card.difficulty-beginner {
    border-left: 4px solid var(--success-color);
}

.project-card.difficulty-beginner:hover {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(72, 187, 120, 0.15);
}

.project-card.difficulty-intermediate {
    border-left: 4px solid var(--warning-color);
}

.project-card.difficulty-intermediate:hover {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(237, 137, 54, 0.15);
}

.project-card.difficulty-advanced {
    border-left: 4px solid var(--error-color);
}

.project-card.difficulty-advanced:hover {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(245, 101, 101, 0.15);
}

.project-card.new-project {
    background: linear-gradient(135deg, #fef5e7 0%, #ffffff 100%);
    border: 2px solid #f39c12;
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.15);
}

.project-card.new-project:hover {
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.25);
}

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

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
    animation: pulse-new 2s ease-in-out infinite;
}

@keyframes pulse-new {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.project-header h4 {
    margin: 0;
    color: #1a202c;
    font-size: 18px;
}

.difficulty-badge {
    background: #edf2f7;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.project-description {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #718096;
}

.project-status {
    text-transform: capitalize;
    font-weight: 600;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.project-actions button {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-start-project {
    background: #667eea;
    color: #ffffff;
}

.btn-start-project:hover {
    background: #5a67d8;
}

.btn-view-project {
    background: #edf2f7;
    color: #4a5568;
}

.btn-view-project:hover {
    background: #e2e8f0;
}

.no-projects {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-style: italic;
}

/* ========================================
   Project Workspace
   ======================================== */

.project-workspace {
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    animation: slideDown 0.3s ease-out;
}

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

.workspace-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px 25px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workspace-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.btn-close-workspace {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-close-workspace:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.workspace-content {
    padding: 25px;
}

.workspace-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.workspace-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.workspace-section h4 {
    color: #1a202c;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.workspace-section p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.requirements-content {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #2d3748;
    line-height: 1.8;
}

.project-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-details-list li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-assigned {
    background: #bee3f8;
    color: #2c5282;
}

.status-in_progress {
    background: #feebc8;
    color: #7c2d12;
}

.status-submitted {
    background: #c6f6d5;
    color: #22543d;
}

.status-completed {
    background: #9ae6b4;
    color: #22543d;
}

.submission-hint {
    color: #718096;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 10px;
}

.submission-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

.submission-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submission-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-submit-project,
.btn-save-draft {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit-project {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #ffffff;
    flex: 1;
}

.btn-submit-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.btn-submit-project:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.btn-save-draft {
    background: #edf2f7;
    color: #4a5568;
}

.btn-save-draft:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* ========================================
   Quiz Interface
   ======================================== */

.quiz-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.quiz-container h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #1a202c;
}

.devops-coach-container .quiz-question {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.quiz-question:last-of-type {
    border-bottom: none;
}

.question-text {
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 15px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.quiz-option input[type="radio"] {
    margin-right: 12px;
}

.btn-submit-quiz {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit-quiz:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Quiz Results */
.quiz-results {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
}

.quiz-results h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.results-summary {
    background: #f7fafc;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.results-summary .score {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 10px 0;
}

.results-summary .correct-count {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 15px 0;
}

.pass-status {
    font-size: 20px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.pass-status.passed {
    background: #c6f6d5;
    color: #22543d;
}

.pass-status.failed {
    background: #fed7d7;
    color: #742a2a;
}

.results-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.result-item.correct {
    background: #f0fff4;
    border-left-color: #48bb78;
}

.result-item.incorrect {
    background: #fff5f5;
    border-left-color: #f56565;
}

.result-item .question {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.result-item .answer,
.result-item .correct-answer {
    font-size: 14px;
    color: #4a5568;
    margin: 4px 0;
}

.result-item .explanation {
    font-size: 14px;
    color: #718096;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.btn-close {
    width: 100%;
    padding: 12px;
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #e2e8f0;
}

/* Action Buttons */
.lms-action-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.lms-action-buttons button {
    flex: 1;
    min-width: 180px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.lms-action-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lms-action-buttons button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Primary Action - View Progress */
#view-progress-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#view-progress-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
}

/* Secondary Actions */
#request-project-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(72, 187, 120, 0.3);
}

#request-project-btn:hover {
    box-shadow: 0 5px 16px rgba(72, 187, 120, 0.4);
}

#generate-quiz-btn {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(237, 137, 54, 0.3);
}

#generate-quiz-btn:hover {
    box-shadow: 0 5px 16px rgba(237, 137, 54, 0.4);
}

/* Quick Progress Summary */
.quick-progress-summary {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.quick-progress-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.quick-progress-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.quick-progress-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.quick-progress-bar-container {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.quick-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.quick-progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Progress Notifications */
.progress-notification {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.progress-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.progress-notification::after {
    content: '×';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.progress-notification:hover::after {
    opacity: 1;
}

/* Responsive LMS */
@media (max-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-progress-content {
        gap: 12px;
    }

    .quick-progress-item {
        min-width: 60px;
    }

    .quick-progress-value {
        font-size: 18px;
    }

    .quick-progress-bar-container {
        min-width: 100%;
    }

    .projects-list {
        grid-template-columns: 1fr;
    }

    .lms-action-buttons {
        flex-direction: column;
    }
}




/* ========================================
   AI Review Modal
   ======================================== */

.ai-review-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(71, 85, 105, 0.08);
    animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.ai-review-modal.review-passed {
    border: 3px solid #48bb78;
    box-shadow:
        0 20px 60px rgba(72, 187, 120, 0.2),
        0 8px 24px rgba(72, 187, 120, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 6px rgba(72, 187, 120, 0.1);
}

.ai-review-modal.review-failed {
    border: 3px solid #f56565;
    box-shadow:
        0 20px 60px rgba(245, 101, 101, 0.2),
        0 8px 24px rgba(245, 101, 101, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 6px rgba(245, 101, 101, 0.1);
}

.review-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.btn-close-review {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-close-review:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.review-content {
    padding: 30px;
}

.review-score-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #ffffff;
    border: 6px solid #667eea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.review-passed .score-circle {
    border-color: #48bb78;
}

.review-failed .score-circle {
    border-color: #f56565;
}

.score-value {
    font-size: 48px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
}

.score-label {
    font-size: 16px;
    color: #718096;
    font-weight: 600;
}

.pass-status {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 8px;
    text-align: center;
}

.pass-status.review-passed {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.pass-status.review-failed {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.review-feedback {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.feedback-content {
    color: #2d3748;
    font-size: 15px;
    line-height: 1.8;
}

.feedback-content strong {
    color: #1a202c;
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
}

.feedback-content strong:first-child {
    margin-top: 0;
}

.feedback-content p {
    margin: 0 0 15px 0;
}

.feedback-content p:last-child {
    margin-bottom: 0;
}

.review-actions {
    display: flex;
    justify-content: center;
}

.btn-close-review-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-close-review-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}




/* Project Template Catalog */
.templates-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
}

.templates-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: min(960px, 100%);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
}

.templates-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.templates-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.templates-close-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #475569;
}

.templates-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.templates-filters label {
    font-weight: 600;
    color: #334155;
}

.templates-filters select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5f5;
}

.templates-list {
    padding: 24px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.templates-loading,
.templates-empty,
.templates-error {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
}

.template-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.template-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.template-card-header h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #1f2937;
}

.template-difficulty {
    text-transform: capitalize;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
}

.template-difficulty.difficulty-beginner {
    background: #dcfce7;
    color: #166534;
}

.template-difficulty.difficulty-intermediate {
    background: #fef3c7;
    color: #92400e;
}

.template-difficulty.difficulty-advanced {
    background: #fee2e2;
    color: #991b1b;
}

.template-summary {
    margin: 0;
    color: #475569;
    min-height: 48px;
}

.template-meta {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: #334155;
}

.template-requirements {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.9rem;
    color: #1e293b;
}

.template-requirements ul {
    margin: 8px 0 0;
    padding-left: 18px;
    list-style: disc;
    color: #1f2937;
}

.template-requirements li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-tag {
    background: #eef2ff;
    color: #4338ca;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.btn-assign-template {
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-assign-template:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
}

.btn-assign-template:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

body.devops-coach-modal-open {
    overflow: hidden;
}


/* ========================================
   Chat Header & Sessions
   ======================================== */

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.chat-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.devops-coach-container .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.devops-coach-container .btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-new-chat {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-new-chat:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Chat History Dropdown */
.chat-history-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.chat-sessions-dropdown {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    width: 400px;
    max-width: 90vw;
    max-height: 70vh;
    min-height: 300px;
    background: #ffffff !important;
    border: 3px solid #667eea !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 999999 !important;
    overflow: hidden;
    display: none;
    flex-direction: column;
    pointer-events: auto;
    cursor: default;
}

body.chat-sessions-open {
    overflow: auto;
}

/* Responsive adjustments for chat history dropdown */
@media (max-width: 768px) {
    .chat-sessions-dropdown {
        width: 350px;
        max-width: 95vw;
        right: 0;
        left: auto;
    }
}

@media (max-width: 480px) {
    .chat-sessions-dropdown {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        right: 20px;
        left: auto;
        max-height: 60vh;
    }
}

.sessions-header {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #1a202c;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.sessions-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.btn-close-sessions {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-close-sessions:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
    transform: scale(1.05);
}

.sessions-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    min-height: 200px;
    max-height: calc(70vh - 100px);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f5f9;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar styling for sessions list (Chrome/Safari/Edge) */
.sessions-list::-webkit-scrollbar {
    width: 12px !important;
    display: block !important;
}

.sessions-list::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 6px;
    margin: 8px 0;
}

.sessions-list::-webkit-scrollbar-thumb {
    background: #cbd5e0 !important;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

.sessions-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.session-item {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.session-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateX(-3px);
}

.session-item.active {
    background: #e6fffa;
    border-color: #81e6d9;
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-preview {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #718096;
}

.session-actions {
    display: flex;
    gap: 6px;
    margin-left: 10px;
}

.btn-load-session,
.btn-delete-session {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-load-session:hover {
    background: #e2e8f0;
}

.btn-delete-session:hover {
    background: #fed7d7;
}

.loading-sessions,
.no-sessions,
.error-sessions {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
    font-style: italic;
}

.error-sessions {
    color: #f56565;
}

/* Adjust chat messages to account for header */
.chat-messages {
    border-radius: 0 0 12px 12px;
    margin-top: 0;
}



/* Sidebar Info Cards (added to replace provider selector UI) */
.devops-coach-sidebar-card {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.devops-coach-sidebar-card + .devops-coach-sidebar-card {
    margin-top: 14px;
}

.sidebar-card-header {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.sidebar-card-text {
    color: var(--text-secondary, #4a5568);
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.5;
}

.sidebar-card-subtext {
    color: #718096;
    margin: 0;
    font-size: 12px;
}

.sidebar-tips {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary, #4a5568);
}

.sidebar-tips li {
    margin-bottom: 6px;
    font-size: 13px;
}

/* UI Layout Switcher */
.sidebar-content {
    padding: 5px 0;
}

.ui-layout-switcher {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.ui-layout-switcher a {
    display: block;
    padding: 8px 12px;
    background: var(--bg-tertiary, #edf2f7);
    border-radius: 6px;
    color: var(--text-secondary, #4a5568);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ui-layout-switcher a:hover {
    background: var(--bg-secondary, #f7fafc);
    color: var(--primary-color, #667eea);
    transform: translateX(3px);
}

.ui-layout-switcher a.active {
    background: var(--primary-color, #667eea);
    color: white;
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}

/* ========================================
   COLLAPSIBLE SECTIONS
   ======================================== */

.collapsible-section {
    margin-bottom: 20px;
    background: var(--bg-primary, #ffffff);
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--border-color, #e2e8f0);
    overflow: hidden;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-secondary, #f8fafc);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
    pointer-events: auto;
    z-index: 1;
    position: relative;
}

.collapsible-header:hover {
    background: var(--bg-tertiary, #f1f5f9);
}

.collapsible-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.collapse-icon {
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
    transition: transform 0.3s;
    display: inline-block;
}

.collapsible-content {
    padding: 0;
    overflow: hidden;
}

.collapsible-content > * {
    margin: 0;
}

/* ========================================
   NEW FEATURES STYLES
   ======================================== */

/* Flashcards */
#flashcards-area {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 20px 25px;
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--radius-md, 12px);
    min-height: 500px;
    height: auto;
    overflow: visible;
    isolation: isolate; /* Create new stacking context to separate from chat below */
}

.flashcard-review-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 500px;
}

.flashcard-stats {
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding: 8px 0;
}

.flashcard-wrapper {
    perspective: 1000px;
    height: 450px;
    min-height: 450px;
    margin-bottom: 15px;
}

.flashcard {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--bg-primary, #ffffff);
    border-radius: var(--radius-md, 10px);
    padding: 18px;
    box-shadow: var(--shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.flashcard-back {
    transform: rotateY(180deg);
}

.flashcard-back .flashcard-content {
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    max-height: none;
}

.flashcard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
    min-height: 0;
    max-height: none;
}

.flashcard-content h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary, #1e293b);
    font-size: 1rem;
    line-height: 1.3;
}

.flashcard-topic {
    display: inline-block;
    background: var(--bg-tertiary, #f1f5f9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary, #475569);
    margin-bottom: 10px;
}

.flashcard-answer {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary, #1e293b);
    padding: 0;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    white-space: pre-wrap;
    max-height: none;
    overflow: visible;
}

.flashcard-answer-header {
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flashcard-flip-btn {
    padding: 8px 18px;
    background: var(--primary-gradient, linear-gradient(135deg, #64748b 0%, #475569 100%));
    color: white;
    border: none;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
    align-self: center;
    min-width: 140px;
    flex-shrink: 0;
}

.flashcard-flip-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.07));
}

.flashcard-quality-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    flex-shrink: 0;
    max-height: none;
    overflow: visible;
}

.flashcard-quality-buttons p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #1e293b !important;
    font-size: 0.85rem;
}

.quality-btn {
    padding: 6px 12px;
    background: var(--bg-secondary, #f8fafc);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 0.8rem;
    min-height: 32px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    color: #1e293b !important;
}

.quality-btn:hover {
    background: var(--bg-tertiary, #f1f5f9);
    border-color: var(--primary-color, #64748b);
    transform: translateX(5px);
}

.flashcard-empty,
.flashcard-complete {
    text-align: center;
    padding: 80px 50px;
    color: var(--text-secondary, #475569);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Learning Paths Display Area in Modern UI */
#learning-paths-area-container.card {
    padding: 0;
    overflow: visible;
}

#learning-paths-area-container .card-header {
    padding: 24px 24px 16px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
}

#learning-paths-area-container .learning-paths-container {
    padding: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

#learning-paths-area-container .learning-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

#learning-paths-area-container .learning-path-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

@media (max-width: 1024px) {
    #learning-paths-area-container .learning-paths-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #learning-paths-area-container .learning-paths-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Learning Paths */
#learning-paths-area {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--radius-md, 12px);
}

.learning-paths-container h3 {
    margin-top: 0;
    color: var(--text-primary, #1e293b);
}

.learning-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.learning-path-card {
    background: var(--bg-primary, #ffffff);
    border-radius: var(--radius-md, 12px);
    padding: 20px;
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.07));
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.learning-path-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.1));
}

.learning-path-card.path-completed {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.card-progress-bar {
    height: 4px;
    background: var(--bg-tertiary, #e2e8f0);
    border-radius: 2px;
    margin: 12px 0;
    overflow: hidden;
}

.card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

.resume-path-btn.completed {
    background: #10b981;
    cursor: default;
}

.resume-path-btn.completed:hover {
    background: #10b981;
    opacity: 1;
}

.path-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.learning-path-card h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary, #1e293b);
}

.learning-path-card p {
    color: var(--text-secondary, #475569);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.path-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
}

.difficulty-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.difficulty-beginner {
    background: #dcfce7;
    color: #166534;
}

.difficulty-intermediate {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-advanced {
    background: #fee2e2;
    color: #991b1b;
}

.start-path-btn,
.resume-path-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-gradient, linear-gradient(135deg, #64748b 0%, #475569 100%));
    color: white;
    border: none;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.start-path-btn:hover,
.resume-path-btn:hover {
    transform: translateY(-1px);
}

.path-progress-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color, #e2e8f0);
}

.path-progress-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.path-progress-item {
    background: var(--bg-primary, #ffffff);
    padding: 15px;
    border-radius: var(--radius-sm, 8px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.12));
}

.path-progress-item h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary, #1e293b);
}

.devops-coach-container .progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary, #f1f5f9);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient, linear-gradient(135deg, #64748b 0%, #475569 100%));
    transition: width 0.3s;
}

.learning-path-details {
    max-width: 800px;
}

.path-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.path-step {
    display: flex;
    gap: 15px;
    background: var(--bg-primary, #ffffff);
    padding: 20px;
    border-radius: var(--radius-sm, 8px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.12));
}

.path-step.completed {
    opacity: 0.7;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient, linear-gradient(135deg, #64748b 0%, #475569 100%));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
}

.step-header-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary, #1e293b);
}

.step-toggle-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--text-secondary, #64748b);
    flex-shrink: 0;
    margin-top: 4px;
}

.step-toggle-btn:hover {
    background: rgba(71, 85, 105, 0.1);
    color: var(--text-primary, #1e293b);
}

.step-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
    line-height: 1;
}

.step-toggle-btn[aria-expanded="false"] .step-toggle-icon {
    transform: rotate(-90deg);
}

.step-collapsible-content {
    margin-top: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.path-step.collapsed .step-collapsible-content {
    display: none;
}

.step-type {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-tertiary, #f1f5f9);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary, #475569);
    margin-top: 8px;
}

.complete-step-btn {
    padding: 8px 16px;
    background: var(--success-color, #10b981);
    color: white;
    border: none;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-weight: 600;
    align-self: flex-start;
}

.complete-step-btn:hover {
    opacity: 0.9;
}

/* Learning Path Guide Features */
.path-progress-header {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border-color, #e2e8f0);
}

.path-progress-header span {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    display: block;
    margin-bottom: 8px;
}

.step-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 140px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.step-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.ask-about-step-btn {
    background: #3b82f6;
    color: white;
}

.ask-about-step-btn:hover {
    background: #2563eb;
}

.get-hint-btn {
    background: #f59e0b;
    color: white;
}

.get-hint-btn:hover {
    background: #d97706;
}

.start-practice-btn {
    background: #8b5cf6;
    color: white;
}

.start-practice-btn:hover {
    background: #7c3aed;
}

.step-meta {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
}

.step-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-tertiary, #f1f5f9);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary, #475569);
    text-transform: capitalize;
}

.step-time {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
}

.step-full-content {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-tertiary, #f8fafc);
    border-radius: var(--radius-sm, 6px);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
}

/* Markdown content styling */
.step-full-content.markdown-content {
    padding: 16px;
}

.step-full-content.markdown-content h1,
.step-full-content.markdown-content h2,
.step-full-content.markdown-content h3,
.step-full-content.markdown-content h4,
.step-full-content.markdown-content h5,
.step-full-content.markdown-content h6 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    line-height: 1.4;
}

.step-full-content.markdown-content h1 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    padding-bottom: 8px;
}

.step-full-content.markdown-content h2 {
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 6px;
}

.step-full-content.markdown-content h3 {
    font-size: 1.1rem;
}

.step-full-content.markdown-content h4,
.step-full-content.markdown-content h5,
.step-full-content.markdown-content h6 {
    font-size: 1rem;
}

.step-full-content.markdown-content p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.step-full-content.markdown-content ul,
.step-full-content.markdown-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.step-full-content.markdown-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.step-full-content.markdown-content code {
    background: var(--bg-secondary, #f1f5f9);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
    color: #e11d48;
    border: 1px solid var(--border-color, #e2e8f0);
}

.step-full-content.markdown-content pre {
    background: #1e293b;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid #334155;
}

.step-full-content.markdown-content pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: #e2e8f0;
    font-size: 0.875rem;
    display: block;
}

.step-full-content.markdown-content blockquote {
    border-left: 4px solid var(--primary-color, #667eea);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-secondary, #64748b);
    font-style: italic;
}

.step-full-content.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.875rem;
}

.step-full-content.markdown-content table th,
.step-full-content.markdown-content table td {
    padding: 8px 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    text-align: left;
}

.step-full-content.markdown-content table th {
    background: var(--bg-secondary, #f1f5f9);
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.step-full-content.markdown-content a {
    color: var(--primary-color, #667eea);
    text-decoration: none;
}

.step-full-content.markdown-content a:hover {
    text-decoration: underline;
}

.step-full-content.markdown-content strong {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.step-full-content.markdown-content em {
    font-style: italic;
}

.step-full-content.markdown-content hr {
    border: none;
    border-top: 2px solid var(--border-color, #e2e8f0);
    margin: 20px 0;
}

.resource-link {
    display: inline-block;
    margin-top: 10px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

.resource-link:hover {
    text-decoration: underline;
}

.completed-badge {
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
}

.locked-badge {
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
}

.path-step.locked {
    opacity: 0.5;
    pointer-events: none;
}

.path-step.completed .step-number {
    background: #10b981;
}

/* Collapsible Quiz in Learning Paths */
.learning-path-quiz {
    margin-top: 16px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    background: var(--bg-primary, #ffffff);
    overflow: hidden;
}

.quiz-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary, #f8fafc);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.quiz-collapsible-header:hover {
    background: var(--bg-tertiary, #f1f5f9);
}

.quiz-collapsible-header h5 {
    margin: 0;
    flex: 1;
}

.quiz-toggle-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--text-secondary, #64748b);
}

.quiz-toggle-btn:hover {
    background: rgba(71, 85, 105, 0.1);
    color: var(--text-primary, #1e293b);
}

.quiz-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
    line-height: 1;
}

.quiz-toggle-btn[aria-expanded="false"] .quiz-toggle-icon {
    transform: rotate(-90deg);
}

.quiz-collapsible-content {
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.learning-path-quiz.collapsed .quiz-collapsible-content {
    display: none;
}

.back-to-paths-btn {
    margin-top: 24px;
    padding: 10px 20px;
    background: var(--bg-tertiary, #f1f5f9);
    color: var(--text-primary, #1e293b);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-weight: 500;
}

.back-to-paths-btn:hover {
    background: var(--bg-secondary, #e2e8f0);
}

/* Concept Maps */
#concept-map-area {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--radius-md, 16px);
    border: 1px solid var(--border-color, #e2e8f0);
}

.concept-map-container {
    padding: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.concept-map-container > div:first-child,
.concept-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
}

.concept-map-container h3,
.knowledge-map-title {
    margin: 0;
    color: var(--text-primary, #1e293b);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex: 0 0 auto;
}

.concept-map-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.snapshot-info {
    color: #64748b;
    font-size: 0.9rem;
    white-space: nowrap;
}

.history-btn {
    padding: 8px 16px;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.history-btn:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .concept-map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .concept-map-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .knowledge-map-title {
        font-size: 1.5rem;
    }
}

.concept-map-visualization {
    margin-top: 8px;
    width: 100%;
}

.concepts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0;
    padding: 0;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .concepts-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .concepts-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Override card padding for concept map container */
#concept-map-area-container.card {
    padding: 0;
    overflow: visible;
}

#concept-map-area-container .card-header {
    padding: 24px 24px 16px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
}

#concept-map-area-container .card-body,
#concept-map-area-container .concept-map-container {
    padding: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

#concept-map-area-container .concept-map-visualization {
    margin-top: 0;
    width: 100%;
    overflow: visible;
}

#concept-map-area-container .concepts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
    margin: 0;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

#concept-map-area-container .concept-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

@media (max-width: 1400px) {
    #concept-map-area-container .concepts-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    #concept-map-area-container .concepts-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #concept-map-area-container .concepts-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #concept-map-area-container .concept-card {
        border-radius: 12px;
    }

    .concept-card-header {
        padding: 20px;
    }

    .concept-card-preview,
    .concept-card-details {
        padding: 16px 20px;
    }

    #concept-map-area-container .concept-map-container {
        padding: 20px;
    }

    .concept-map-container h3 {
        font-size: 1.5rem;
    }
}

/* Concept Cards - Interactive Design */
.concept-card {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.concept-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.concept-card:hover::before {
    opacity: 1;
}

.concept-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: background 0.3s ease;
}

.concept-card:hover .concept-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.concept-header-content {
    flex: 1;
    min-width: 0;
}

.concept-title {
    margin: 0 0 12px 0;
    color: var(--text-primary, #1e293b);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.concept-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.concept-card-preview {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    background: #fafbfc;
}

.concept-preview-text {
    margin: 0;
    color: var(--text-secondary, #475569);
    line-height: 1.7;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.concept-card-details {
    padding: 24px;
    background: #ffffff;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.concept-full-content {
    color: var(--text-primary, #1e293b);
    line-height: 1.8;
    font-size: 0.95rem;
}

.concept-full-content > *:first-child {
    margin-top: 0;
}

.concept-full-content > *:last-child {
    margin-bottom: 0;
}

.concept-full-content h3,
.concept-full-content h4 {
    color: var(--text-primary, #1e293b);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.concept-full-content h3:first-child,
.concept-full-content h4:first-child {
    margin-top: 0;
}

.concept-full-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.concept-full-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.concept-full-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.concept-full-content ul,
.concept-full-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.concept-full-content li {
    margin: 8px 0;
    color: var(--text-secondary, #475569);
}

.concept-expand-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #64748b);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
}

.concept-expand-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--primary-color, #667eea);
    transform: scale(1.1);
}

.concept-expand-btn .expand-icon {
    transition: transform 0.3s ease;
}

.concept-card:hover .concept-expand-btn .expand-icon {
    transform: translateY(2px);
}

.concept-ask-btn,
.concept-practice-btn {
    transition: all 0.2s;
}

.concept-ask-btn:hover {
    background: #5568d3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.concept-practice-btn:hover {
    background: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.concept-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.concept-full-content h2 {
    color: var(--text-primary, #1e293b);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.concept-full-content h2:first-of-type {
    margin-top: 0;
}

.concept-full-content h3,
.concept-full-content h4 {
    color: var(--text-primary, #1e293b);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.concept-full-content h3:first-child,
.concept-full-content h4:first-child {
    margin-top: 0;
}

/* Legacy support for old concept-node class */
.concept-node {
    background: var(--bg-primary, #ffffff);
    padding: 15px;
    border-radius: var(--radius-sm, 8px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.12));
    border-left: 4px solid var(--primary-color, #64748b);
    transition: transform 0.2s, box-shadow 0.2s;
}

.concept-node:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.07));
}

.concept-node h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary, #1e293b);
}

.concept-node p {
    margin: 0 0 8px 0;
    color: var(--text-secondary, #475569);
    font-size: 0.9rem;
}

.concept-category {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-tertiary, #f1f5f9);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary, #475569);
}

.concept-relationships {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color, #e2e8f0);
}

.concept-relationships h4 {
    margin: 0 0 15px 0;
    color: var(--text-primary, #1e293b);
}

.concept-relationships ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.concept-relationships li {
    padding: 10px;
    background: var(--bg-primary, #ffffff);
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.12));
}

.relationship-type {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-color, #64748b);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 0 8px;
    font-weight: 600;
}

.concept-map-empty,
.learning-paths-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #475569);
}

/* Loading spinner animation for flashcard generation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Scenario-Based Learning Styles
   ======================================== */

.scenarios-container {
    padding: 20px;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.scenario-card {
    background: var(--card-bg, #ffffff);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color, #667eea);
}

.scenario-card.in-progress {
    border-color: var(--warning-color, #f59e0b);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.scenario-card.completed {
    border-color: var(--success-color, #10b981);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.scenario-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.scenario-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0 0 8px 0;
}

.scenario-description {
    color: var(--text-secondary, #64748b);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.scenario-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.scenario-time {
    color: var(--text-secondary, #64748b);
    font-size: 0.85rem;
}

.scenario-score {
    font-weight: 600;
    color: var(--success-color, #10b981);
    margin-bottom: 12px;
}

.scenario-start-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-color, #667eea);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenario-start-btn:hover {
    background: var(--primary-dark, #5568d3);
    transform: scale(1.02);
}

.scenario-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, #64748b);
}

/* Scenario View Styles */
.scenario-view-container {
    padding: 20px;
}

.scenario-header {
    margin-bottom: 24px;
}

.scenario-back-btn {
    background: transparent;
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-primary, #1e293b);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.scenario-back-btn:hover {
    background: var(--bg-secondary, #f8fafc);
    border-color: var(--primary-color, #667eea);
}

.scenario-title-section h2 {
    font-size: 1.75rem;
    margin: 0 0 8px 0;
    color: var(--text-primary, #1e293b);
}

.scenario-progress-bar {
    margin-top: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
}

.scenario-score-display {
    font-weight: 600;
    color: var(--primary-color, #667eea);
}

.devops-coach-container .progress-bar {
    height: 8px;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #667eea) 0%, var(--primary-light, #818cf8) 100%);
    transition: width 0.3s ease;
}

.scenario-content {
    margin-top: 24px;
}

.scenario-step {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0 0 12px 0;
}

.step-description {
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
    margin-bottom: 24px;
}

.scenario-actions {
    margin-top: 24px;
}

.scenario-actions h4 {
    font-size: 1.1rem;
    margin: 0 0 16px 0;
    color: var(--text-primary, #1e293b);
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    padding: 16px 20px;
    background: var(--bg-secondary, #f8fafc);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: var(--text-primary, #1e293b);
}

.action-btn:hover:not(:disabled) {
    background: var(--primary-color, #667eea);
    color: white;
    border-color: var(--primary-color, #667eea);
    transform: translateX(4px);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.scenario-hints-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.hint-btn {
    padding: 10px 20px;
    background: var(--warning-color, #f59e0b);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hint-btn:hover:not(:disabled) {
    background: var(--warning-dark, #d97706);
    transform: scale(1.05);
}

.hint-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hint-display {
    margin-top: 16px;
    padding: 16px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning-color, #f59e0b);
    border-radius: 6px;
}

.hint-content {
    color: var(--text-primary, #1e293b);
    line-height: 1.6;
}

.scenario-feedback {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

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

.feedback-message {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feedback-correct {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color, #10b981);
}

.feedback-incorrect {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.feedback-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feedback-text {
    flex: 1;
}

.feedback-text strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feedback-text p {
    margin: 0;
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
}

.score-change {
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.score-change.positive {
    color: var(--success-color, #10b981);
}

.score-change.negative {
    color: #ef4444;
}

.scenario-completion {
    text-align: center;
    padding: 60px 20px;
}

.completion-icon {
    font-size: 5rem;
    margin-bottom: 24px;
}

.scenario-completion h2 {
    font-size: 2rem;
    margin: 0 0 16px 0;
    color: var(--text-primary, #1e293b);
}

.completion-message {
    color: var(--text-secondary, #64748b);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.final-score {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color, #667eea);
    margin-bottom: 32px;
}

.completion-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.scenario-restart-btn,
.scenario-back-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenario-restart-btn {
    background: var(--primary-color, #667eea);
    color: white;
    border: none;
}

.scenario-restart-btn:hover {
    background: var(--primary-dark, #5568d3);
    transform: scale(1.05);
}

/* Scenario Generation Modal */
.scenario-generate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}

.scenario-generate-modal {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary, #1e293b);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-primary, #1e293b);
}

.devops-coach-container .modal-content {
    padding: 24px;
}

.modal-description {
    color: var(--text-secondary, #64748b);
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.devops-coach-container .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.devops-coach-container .form-input ,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--card-bg, #ffffff);
    color: var(--text-primary, #1e293b);
}

.devops-coach-container .form-input:focus ,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.devops-coach-container .form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary, #64748b);
    font-size: 0.85rem;
}

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

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.btn-secondary,
.btn-primary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-secondary {
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-primary, #1e293b);
}

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

.btn-primary {
    background: var(--primary-color, #667eea);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark, #5568d3);
    transform: scale(1.02);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.scenario-actions-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end;
}

.generate-scenario-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--primary-light, #818cf8) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.generate-scenario-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========================================
   Study Buddy Styles
   ======================================== */

.study-buddy-container {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.study-buddy-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buddy-message {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid var(--primary-color, #667eea);
    border-left: 5px solid var(--primary-color, #667eea);
    border-radius: 12px;
    padding: 16px 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.buddy-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.buddy-message-milestone {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-color: var(--success-color, #10b981);
    border-left-color: var(--success-color, #10b981);
}

.buddy-message-encouragement {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-color: var(--warning-color, #f59e0b);
    border-left-color: var(--warning-color, #f59e0b);
}

.buddy-message-reminder {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: #3b82f6;
    border-left-color: #3b82f6;
}

.buddy-message-suggestion {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-color: #8b5cf6;
    border-left-color: #8b5cf6;
}

.buddy-message-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.buddy-avatar {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg, #ffffff);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.buddy-message-content {
    flex: 1;
    min-width: 0;
}

.buddy-message-text {
    color: var(--text-primary, #1e293b);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.buddy-message-time {
    color: var(--text-secondary, #64748b);
    font-size: 0.85rem;
}

.buddy-dismiss-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #64748b);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buddy-dismiss-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary, #1e293b);
    transform: scale(1.1);
}

/* Pulse animation for highlighting new scenarios */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* ========================================
   UNIFIED GLOBAL SEARCH INTERFACE
   ======================================== */

/* Search Overlay */
.unified-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.unified-search-container {
    background: var(--bg-primary, #ffffff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: searchSlideIn 0.2s ease-out;
}

@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Search Header */
.unified-search-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary, #ffffff);
    position: sticky;
    top: 0;
    z-index: 10;
}

.unified-search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.unified-search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 16px;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-primary, #1a202c);
    transition: all 0.2s ease;
    outline: none;
}

.unified-search-input:focus {
    border-color: var(--primary-color, #475569);
    background: var(--bg-primary, #ffffff);
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.unified-search-icon {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: var(--text-muted, #718096);
    pointer-events: none;
}

.unified-search-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary, #4a5568);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unified-search-close:hover {
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-primary, #1a202c);
    transform: rotate(90deg);
}

/* Search Filters */
.unified-search-filters {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-secondary, #f8fafc);
}

.search-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.search-filter-group:last-child {
    margin-bottom: 0;
}

.search-filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary, #4a5568);
    min-width: 100px;
    flex-shrink: 0;
}

.search-filter-select,
.search-filter-date {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #1a202c);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-filter-select:focus,
.search-filter-date:focus {
    border-color: var(--primary-color, #475569);
    box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.1);
}

.search-filter-toggle {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--border-color, #e2e8f0);
    border-radius: 8px;
    color: var(--text-secondary, #4a5568);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-filter-toggle:hover {
    background: var(--bg-primary, #ffffff);
    border-color: var(--primary-color, #475569);
    color: var(--primary-color, #475569);
}

/* Search Results */
.unified-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 200px;
    max-height: calc(85vh - 200px);
}

.search-results-placeholder,
.search-no-results,
.search-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #718096);
}

.search-results-placeholder p,
.search-no-results p,
.search-error p {
    margin: 8px 0;
    font-size: 15px;
}

.search-results-summary {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.search-results-summary p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #4a5568);
}

.search-results-summary strong {
    color: var(--text-primary, #1a202c);
    font-weight: 600;
}

/* Result Groups */
.search-result-group {
    margin-bottom: 32px;
}

.search-result-group:last-child {
    margin-bottom: 0;
}

.search-result-group-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted, #718096);
}

.search-result-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Result Items */
.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--bg-primary, #ffffff);
    border-color: var(--primary-color, #475569);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.1);
    transform: translateY(-2px);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
    line-height: 1.4;
}

.search-result-title mark.search-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--text-primary, #1a202c);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
}

.search-result-description {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--text-secondary, #4a5568);
    line-height: 1.5;
}

.search-result-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted, #718096);
}

.search-result-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.search-result-date {
    margin-left: auto;
}

.search-result-action {
    background: var(--primary-color, #475569);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 16px;
}

.search-result-action:hover {
    background: var(--primary-dark, #334155);
    transform: translateX(2px);
}

/* Loading State */
.unified-search-loading {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted, #718096);
}

.search-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color, #e2e8f0);
    border-top-color: var(--primary-color, #475569);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Search Trigger Button */
.unified-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    color: var(--text-secondary, #4a5568);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.unified-search-trigger:hover {
    background: var(--bg-primary, #ffffff);
    border-color: var(--primary-color, #475569);
    color: var(--primary-color, #475569);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.1);
}

.unified-search-trigger:active {
    transform: translateY(0);
}

/* Keyboard Shortcut Hint */
.unified-search-trigger::after {
    content: 'Ctrl+K';
    font-size: 11px;
    padding: 2px 6px;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 4px;
    margin-left: 4px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .unified-search-overlay {
        padding: 20px 10px;
    }
    
    .unified-search-container {
        max-height: 90vh;
    }
    
    .unified-search-header {
        padding: 16px;
    }
    
    .unified-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .search-filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter-group label {
        min-width: auto;
    }
    
    .search-result-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-result-action {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }
    
    .unified-search-trigger::after {
        display: none; /* Hide keyboard shortcut on mobile */
    }
}

/* Dark Theme Support */
.devops-coach-container.theme-charcoal .unified-search-container,
.devops-coach-container.theme-midnight .unified-search-container,
.devops-coach-container.theme-obsidian .unified-search-container {
    background: var(--bg-primary, #1e293b);
    color: var(--text-primary, #f1f5f9);
}

.devops-coach-container.theme-charcoal .unified-search-input,
.devops-coach-container.theme-midnight .unified-search-input,
.devops-coach-container.theme-obsidian .unified-search-input {
    background: var(--bg-secondary, #334155);
    border-color: var(--border-color, #475569);
    color: var(--text-primary, #f1f5f9);
}

.devops-coach-container.theme-charcoal .search-result-item,
.devops-coach-container.theme-midnight .search-result-item,
.devops-coach-container.theme-obsidian .search-result-item {
    background: var(--bg-secondary, #334155);
    border-color: var(--border-color, #475569);
}


/* Search Result Highlight Effect */
.search-result-highlight {
    animation: searchHighlightPulse 2s ease-in-out;
    position: relative;
}

.search-result-highlight::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 3px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    animation: searchHighlightBorder 2s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes searchHighlightPulse {
    0% {
        background-color: rgba(71, 85, 105, 0.2);
        transform: scale(1);
    }
    50% {
        background-color: rgba(71, 85, 105, 0.3);
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

@keyframes searchHighlightBorder {
    0% {
        opacity: 1;
        border-color: rgba(71, 85, 105, 0.8);
    }
    50% {
        opacity: 0.8;
        border-color: rgba(71, 85, 105, 0.5);
    }
    100% {
        opacity: 0;
        border-color: rgba(71, 85, 105, 0);
    }
}

/* Project card highlight */
.project-card.search-result-highlight {
    box-shadow: 0 8px 24px rgba(71, 85, 105, 0.3);
    border-color: var(--primary-color, #475569);
}

/* Learning path highlight */
.learning-path-item.search-result-highlight {
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
    border-color: var(--primary-color, #475569);
}

/* Flashcard highlight */
.flashcard-item.search-result-highlight {
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
    border-color: var(--primary-color, #475569);
}

/* Concept map highlight */
.concept-map-item.search-result-highlight {
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
    border-color: var(--primary-color, #475569);
}

/* Chat section highlight */
#chat-section.search-result-highlight {
    border: 2px solid var(--primary-color, #475569);
    border-radius: 12px;
    padding: 4px;
}


/* ========================================
   MIND MAP STYLES - REMOVED
   ======================================== */
}

