:root {
    /* Clean Bright White Aesthetic */
    --bg-base: #ffffff;
    --bg-surface: rgba(0, 0, 0, 0.03);
    --bg-surface-hover: rgba(0, 0, 0, 0.08);
    --border-color: rgba(0, 0, 0, 0.1);
    --border-glow: rgba(138, 43, 226, 0.3);
    
    --primary: #8a2be2;
    --primary-hover: #9b4dca;
    --primary-glow: rgba(138, 43, 226, 0.2);
    
    --secondary: #0ea5e9;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Atmosphere */
.galaxy-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 75%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.glass-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 6px var(--success)); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.app-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.persona-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.persona-selector label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.persona-selector select {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.persona-selector select:hover, .persona-selector select:focus {
    color: var(--primary);
}

/* KPI Analytics Bar */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.2s, border-color 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-glow);
}

.kpi-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.kpi-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

.kpi-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr;
    gap: 16px;
}

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

.main-column, .side-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card Design */
.card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

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

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 18px;
}

/* Form Controls */
.flex-row {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group select, .input-group input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group select:focus, .input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Buttons */
.btn {
    position: relative;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px var(--primary-glow); }

.btn-secondary { background: rgba(6, 182, 212, 0.15); color: var(--secondary); border: 1px solid rgba(6, 182, 212, 0.3); }
.btn-secondary:hover { background: rgba(6, 182, 212, 0.25); }

.btn-warning { background: var(--warning); color: #000; font-weight: 700; }
.btn-warning:hover { background: #d97706; transform: translateY(-1px); }

.btn-accent { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; width: 100%; margin-top: 14px; }
.btn-accent:hover { opacity: 0.95; transform: translateY(-1px); }

.btn-success { background: var(--success); color: white; width: 100%; margin-top: 10px; }
.btn-success:hover { background: #059669; }

.btn-danger { background: var(--danger); color: white; width: 100%; margin-top: 10px; }
.btn-danger:hover { background: #e11d48; }

.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

.btn-danger-outline { background: transparent; color: var(--danger); border: 1px solid rgba(244, 63, 94, 0.3); }
.btn-danger-outline:hover { background: rgba(244, 63, 94, 0.1); }

.action-bar {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

/* Feature Status Pills */
.feature-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-status.active { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.feature-status.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.feature-status.info { background: rgba(99, 102, 241, 0.15); color: var(--primary); border: 1px solid rgba(99, 102, 241, 0.3); }
.feature-status.danger { background: rgba(244, 63, 94, 0.15); color: var(--danger); border: 1px solid rgba(244, 63, 94, 0.3); }

/* Timeline Slots */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.timeline-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.timeline-slot:hover {
    border-color: var(--primary);
    background: var(--bg-surface-hover);
}

.timeline-slot.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-slot.completed {
    opacity: 0.6;
}

.slot-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.student-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.scheduled-hours {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.slot-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.slot-badge.late {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.delay-control-box {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.6);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
}

/* Queue Cards */
.queue-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.queue-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fade-in-up 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(15px);
}
@keyframes fade-in-up {
    to { opacity: 1; transform: translateY(0); }
}

.queue-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-glow);
}

.queue-card.high-priority {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(255, 255, 255, 0.85));
}

.rank-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.queue-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-stats {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Corporate Pools */
.corp-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.corp-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.corp-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.corp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.corp-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    color: var(--text-secondary);
}

.corp-item.first-place {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

/* Feeds */
.notif-feed, .logs-feed {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-item {
    background: rgba(255, 255, 255, 0.8);
    border-left: 3px solid var(--primary);
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
}

.notification-item.sys-msg {
    border-left-color: var(--secondary);
}

.notif-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.trigger-log-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.trigger-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.trigger-status.pass { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.trigger-status.fail { background: rgba(244, 63, 94, 0.2); color: var(--danger); }

/* Result Box */
.result-box {
    margin-top: 16px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.result-box.show,
.result-box[style*="display: block"],
.result-box[style*="display:block"] {
    padding: 16px 18px;
    max-height: 1200px;
    opacity: 1;
    overflow: visible;
    transform: translateY(0);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.result-box.hidden { display: none; }
.result-box.success-ok { background: rgba(16, 185, 129, 0.15); border-color: var(--success); color: #a7f3d0; }
.result-box.clash-detected { background: rgba(244, 63, 94, 0.15); border-color: var(--danger); color: #fecdd3; }

/* UI/UX Phase 1 Overhaul: Clash Checker Engine */

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}
.btn-loading span {
    visibility: hidden;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Card Glow States */
.card-success {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}
.card-danger {
    border-color: rgba(244, 63, 94, 0.5) !important;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    animation: danger-pulse 2s infinite;
}
@keyframes danger-pulse {
    0% { box-shadow: 0 0 20px rgba(244, 63, 94, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25); }
    50% { box-shadow: 0 0 30px rgba(244, 63, 94, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25); }
    100% { box-shadow: 0 0 20px rgba(244, 63, 94, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25); }
}

/* Pill Badges for Alternative Slots */
.alt-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    list-style: none;
    padding: 0;
}
.alt-slot-pill {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.alt-slot-pill:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* UI/UX Phase 2 Overhaul: Delay Cascade Engine */
.badge-value {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    outline: none;
    padding: 0 !important;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--warning);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    transition: transform 0.1s;
}
.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.shake-warning {
    animation: shake-orange 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    border-color: var(--warning) !important;
    background: rgba(245, 158, 11, 0.15) !important;
}
@keyframes shake-orange {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

.timeline-slot {
    animation: slide-in-right 0.3s ease-out backwards;
}
@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* UI/UX Phase 5 Overhaul: Binding Offer Resolver */
.celebrate-pulse {
    animation: gold-glow 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes gold-glow {
    0% { border-color: rgba(250, 204, 21, 0.1); box-shadow: 0 0 0 rgba(250, 204, 21, 0); }
    30% { border-color: rgba(250, 204, 21, 0.8); box-shadow: 0 0 40px rgba(250, 204, 21, 0.6), inset 0 0 20px rgba(250, 204, 21, 0.2); }
    100% { border-color: rgba(250, 204, 21, 0.2); box-shadow: 0 0 10px rgba(250, 204, 21, 0.1); }
}

.evaporate {
    animation: evaporate-away 0.8s ease-in forwards;
}
@keyframes evaporate-away {
    0% { opacity: 1; filter: blur(0px); transform: scale(1); }
    50% { filter: blur(4px); transform: scale(1.05); }
    100% { opacity: 0; filter: blur(10px); transform: scale(0.9) translateY(-20px); }
}

/* ========================================================
   IR-12 AI INTELLIGENT AUTOMATION STUDIO STYLES
   ======================================================== */
.ai-badge-header {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 8px;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.ai-studio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.ai-panel-card {
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    background: linear-gradient(135deg, rgba(16, 23, 42, 0.85), rgba(30, 27, 75, 0.5)) !important;
}

.ai-tab-content {
    display: none;
    animation: fadeInTab 0.3s ease-out;
}

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

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

.custom-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.custom-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.custom-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.skill-tag-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 3px;
    font-family: 'JetBrains Mono', monospace;
}

.skill-tag-matched {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.skill-tag-missing {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid #f43f5e;
    color: #fda4af;
}

.skill-tag-bonus {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid #3b82f6;
    color: #c4b5fd;
}

.gauge-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gauge-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════════
   🤖 AI AGENT BOT FLOATING FAB & CHAT MODAL
   ══════════════════════════════════════════════════════════════════ */

.ai-agent-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0284c7, #6366f1, #2563eb);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-agent-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.6);
}

.ai-fab-icon { font-size: 1.25rem; }
.ai-fab-text { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.5px; }

.ai-fab-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hidden {
    display: none !important;
}

.ai-agent-modal.hidden {
    display: none !important;
}

.ai-agent-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 16px;
}

.ai-agent-box {
    width: 100%;
    max-width: 520px;
    height: 640px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.ai-agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-header-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0284c7, #6366f1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ai-agent-header h3 { margin: 0; font-size: 0.95rem; color: #f8fafc; }
.ai-agent-header p { margin: 0; font-size: 0.72rem; color: #94a3b8; }

.btn-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}
.btn-close:hover { color: white; background: rgba(255, 255, 255, 0.1); }

.ai-quick-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(2, 6, 23, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
}

.quick-chip {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.quick-chip:hover { background: rgba(99, 102, 241, 0.3); color: white; }

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ai-msg.bot {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.ai-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0284c7, #6366f1);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-time {
    display: block;
    font-size: 0.65rem;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.drive-ingest-panel {
    margin: 12px;
    padding: 14px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 14px;
}

.drive-ingest-panel h4 { margin: 0 0 6px 0; font-size: 0.85rem; color: #a5b4fc; }
.drive-ingest-panel p { margin: 0 0 8px 0; font-size: 0.72rem; color: #cbd5e1; }
.drive-ingest-panel textarea {
    width: 100%;
    height: 70px;
    padding: 8px;
    border-radius: 8px;
    background: #020617;
    color: white;
    border: 1px solid #334155;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}

.drive-panel-btns { display: flex; gap: 8px; }

.ai-chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(2, 6, 23, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-input-bar input {
    flex: 1;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 0.8rem;
}
.ai-chat-input-bar input:focus { outline: none; border-color: #6366f1; }


