/* 
   ⚔️ MIKASA ACKERMAN — EXECUTIVE AI COMMAND CENTER 
   Design System: Obsidian Glassmorphism & Cyber-Lethal Elegance
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-dark: #07090e;
    --bg-surface: #0e121b;
    --bg-card: rgba(18, 24, 38, 0.72);
    --bg-card-hover: rgba(26, 34, 52, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.25);
    --border-crimson: rgba(255, 77, 109, 0.35);

    --crimson: #ff4d6d;
    --crimson-glow: rgba(255, 77, 109, 0.4);
    --cyan: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.35);
    --violet: #a855f7;
    --emerald: #10b981;
    --amber: #f59e0b;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.15);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 77, 109, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 242, 254, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* TOP COMMAND HEADER */
header.command-header {
    height: 72px;
    background: rgba(14, 18, 27, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--crimson), #7928ca);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 15px var(--crimson-glow);
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--emerald);
    border: 2px solid var(--bg-surface);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    animation: pulseGlow 2s infinite;
}

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

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 77, 109, 0.15);
    color: var(--crimson);
    border: 1px solid var(--border-crimson);
    letter-spacing: 0.05em;
}

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

.status-pills {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.status-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 6px var(--emerald);
}

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

.btn {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--crimson), #e63946);
    color: #fff;
    box-shadow: 0 4px 15px var(--crimson-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* MAIN DASHBOARD LAYOUT */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    padding: 24px 28px;
    flex: 1;
    max-width: 1720px;
    margin: 0 auto;
    width: 100%;
}

/* LEFT WORKSPACE */
.workspace-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* NAV TABS */
.nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 18, 27, 0.7);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.25), rgba(168, 85, 247, 0.2));
    border: 1px solid var(--border-crimson);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.25s ease;
}

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

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

/* GLASS CARDS */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* GOALS SECTION */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.goal-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.goal-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.goal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cat-career { background: rgba(0, 242, 254, 0.15); color: var(--cyan); border: 1px solid rgba(0, 242, 254, 0.3); }
.cat-learning { background: rgba(168, 85, 247, 0.15); color: var(--violet); border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-entrepreneurship { background: rgba(255, 77, 109, 0.15); color: var(--crimson); border: 1px solid var(--border-crimson); }
.cat-general { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

.goal-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
}

.goal-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--crimson), var(--cyan));
    border-radius: 999px;
}

/* TASKS KANBAN / LIST */
.task-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    gap: 6px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}

.task-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.task-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.task-checkbox:checked {
    background: var(--emerald);
    border-color: var(--emerald);
}

.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: #000;
    font-size: 13px;
    font-weight: 800;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.task-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
    font-family: var(--font-mono);
}

.prio-badge {
    font-size: 0.75rem;
    font-weight: 600;
}

/* DECISIONS MATRIX */
.decisions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.decision-card {
    background: rgba(255, 255, 255, 0.025);
    border-left: 3px solid var(--violet);
    border-top: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.decision-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.decision-reason {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* MEMORY VAULT */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.memory-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
}

.memory-item:hover {
    border-color: rgba(255, 77, 109, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.memory-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.memory-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--crimson);
}

.memory-content {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #e2e8f0;
}

.memory-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* PROJECTS MATRIX */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.project-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.project-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* RIGHT PANEL: LIVE COMPANION TERMINAL (MIKASA CHAT) */
.companion-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    position: sticky;
    top: 96px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.companion-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(14, 18, 27, 0.6);
}

.companion-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.companion-info h3 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.companion-tag {
    font-size: 0.72rem;
    color: var(--crimson);
}

/* CHAT MESSAGES */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
    position: relative;
    animation: bubbleFade 0.2s ease;
}

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

.bubble-mikasa {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 4px;
    color: #f1f5f9;
}

.bubble-mikasa::before {
    content: '⚔️ Mikasa';
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--crimson);
    margin-bottom: 4px;
}

.bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.85), rgba(168, 85, 247, 0.85));
    color: #fff;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.25);
}

.bubble-user::before {
    content: 'Swapnil';
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    text-align: right;
}

/* QUICK ACTION CHIPS */
.quick-chips {
    padding: 8px 16px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-top: 1px solid var(--border-subtle);
    background: rgba(14, 18, 27, 0.4);
}

.chip {
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}

/* CHAT INPUT FORM */
.chat-input-area {
    padding: 14px 16px;
    background: rgba(14, 18, 27, 0.85);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--crimson);
    box-shadow: 0 0 10px var(--crimson-glow);
}

.btn-send {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--crimson);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 12px var(--crimson-glow);
    transition: all 0.15s;
}

.btn-send:hover {
    transform: scale(1.05);
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    animation: modalIn 0.2s ease;
}

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

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

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

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--crimson);
}

/* TYPING INDICATOR */
.typing-dots {
    display: inline-flex;
    gap: 4px;
    padding: 4px 8px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crimson);
    animation: bounceDot 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounceDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 1080px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .companion-panel {
        height: 520px;
        position: static;
    }
}

/* MIKASA BRAND & AVATAR STYLES */
.brand-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 77, 109, 0.4);
    box-shadow: 0 0 12px rgba(255, 77, 109, 0.25);
    display: block;
}

.avatar-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar-mikasa {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 77, 109, 0.5);
    margin-right: 8px;
    vertical-align: middle;
}

/* --- OBSERVER & COMMANDER AUTH STYLES --- */
.auth-pill-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.observer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.pulse-amber {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: pulseGlow 2s infinite ease-in-out;
}

.commander-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.pulse-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite ease-in-out;
}

.btn-commander-login {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-commander-login:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(168, 85, 247, 0.25));
    border-color: #00f2fe;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.3);
    transform: translateY(-1px);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 77, 109, 0.2);
    border-color: #ff4d6d;
    color: #ff4d6d;
}

.observer-mode-banner {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(14, 18, 27, 0.95), rgba(245, 158, 11, 0.08));
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    padding: 10px 24px;
    position: relative;
    z-index: 90;
    transition: all 0.3s ease;
}

.banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.banner-icon {
    font-size: 1.1rem;
}

.banner-text {
    flex: 1;
}

.btn-banner-login {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-banner-login:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: #fbbf24;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-msg {
    pointer-events: auto;
    background: rgba(14, 18, 27, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.84rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
}

.toast-msg.toast-warning {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.toast-msg.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Observer locked elements */
body.observer-mode .action-restricted {
    opacity: 0.7;
    cursor: pointer;
    position: relative;
}

body.observer-mode .task-checkbox {
    cursor: not-allowed;
    opacity: 0.55;
}

body.observer-mode .chip {
    cursor: pointer;
    opacity: 0.75;
    border-color: rgba(245, 158, 11, 0.25);
}

body.observer-mode .chip:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.08);
}

body.observer-mode input.chat-input:disabled {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(245, 158, 11, 0.2);
    color: #94a3b8;
    cursor: not-allowed;
}

body.observer-mode .btn-send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(1);
}

