/* Floating Agent Status Button (bottom-right, always visible) */
.agent-status-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1055;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0dcaf0 60%, #6610f2 100%);
    border: none;
    outline: none;
    transition: box-shadow 0.2s;
}
.agent-status-btn:hover, .agent-status-btn:focus {
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #6610f2 60%, #0dcaf0 100%);
}

/* Neon glow for modal */
.neon-glow {
    box-shadow: 0 0 12px #0dcaf0, 0 0 24px #6610f2;
}

@media (max-width: 600px) {
    .agent-status-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        bottom: 16px;
        right: 16px;
    }
}
.modal-body#agent-status-list {
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
}
@media (max-width: 900px) {
    .modal-body#agent-status-list {
        max-height: 70vh;
    }
}
/* Neon/Futuristic theme on top of Bootstrap */
.neon-glow {
    box-shadow: 0 0 24px 4px var(--accent-cyan), 0 4px 16px rgba(0,229,255,0.18) !important;
    border: 2px solid var(--accent-cyan) !important;
}
.modal-content.bg-dark {
    background: var(--gradient-dark) !important;
    color: var(--accent-cyan) !important;
}
.offcanvas {
    background: var(--gradient-dark) !important;
    color: var(--accent-cyan) !important;
    border-right: 2px solid var(--accent-cyan);
}
.offcanvas-title {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    letter-spacing: 2px;
}
.nav-link.nav-item {
    color: var(--accent-cyan) !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}
.nav-link.nav-item.active, .nav-link.nav-item:hover {
    background: var(--accent-blue) !important;
    color: #fff !important;
    box-shadow: 0 0 12px 2px var(--accent-blue);
}
.btn-close-white {
    filter: invert(1);
}
.agent-status-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 0 24px 4px var(--accent-cyan), 0 4px 16px rgba(0,229,255,0.18);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    animation: glowPulse 2s infinite alternate;
}
.agent-status-btn i {
    filter: drop-shadow(0 0 6px var(--accent-blue));
}
@media (max-width: 900px) {
    .agent-status-btn {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}
@media (max-width: 900px) {
    .sidebar {
        background: var(--gradient-dark);
        box-shadow: 2px 0 32px var(--accent-blue);
        transition: left 0.3s, box-shadow 0.3s;
        z-index: 300;
        position: fixed;
        left: -220px;
        width: 220px;
        height: 100vh;
        top: 0;
    }
    .sidebar.open {
        left: 0;
    }
    .sidebar.open ~ .content-area,
    .sidebar.open ~ .main-content {
        filter: blur(2px);
        pointer-events: none;
    }
    .agent-status-btn {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}
/* --- WOW EFFECTS & VISUAL ENHANCEMENTS --- */
.agent-status-btn {
    background: var(--gradient-accent);
    box-shadow: 0 0 24px 4px var(--accent-cyan), 0 4px 16px rgba(0,229,255,0.18);
    animation: glowPulse 2s infinite alternate;
}
.agent-status-btn i {
    filter: drop-shadow(0 0 6px var(--accent-blue));
}
@keyframes glowPulse {
    0% { box-shadow: 0 0 24px 4px var(--accent-cyan), 0 4px 16px rgba(0,229,255,0.18); }
    100% { box-shadow: 0 0 48px 12px var(--accent-blue), 0 8px 32px rgba(0,229,255,0.28); }
}

.agent-status-modal-content {
    border: 2px solid var(--accent-cyan);
    background: var(--gradient-dark);
    box-shadow: 0 0 32px 8px var(--accent-blue), 0 8px 32px rgba(0,229,255,0.18);
    animation: modalPop 0.4s;
}
@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.close-modal {
    transition: color 0.2s;
}
.close-modal:hover {
    color: var(--accent-purple);
}

.burger-btn {
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 16px 2px var(--accent-cyan);
    transition: background 0.2s, box-shadow 0.2s;
    animation: glowPulse 2s infinite alternate;
}
.burger-btn:active, .burger-btn:focus {
    outline: none;
    background: var(--accent-blue);
    box-shadow: 0 0 32px 8px var(--accent-blue);
}

/* Sidebar overlay for mobile */
@media (max-width: 900px) {
    .sidebar {
        background: var(--gradient-dark);
        box-shadow: 2px 0 32px var(--accent-blue);
        transition: left 0.3s, box-shadow 0.3s;
    }
    .sidebar.open::after {
        content: '';
        position: fixed;
        left: 220px;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.3);
        z-index: 199;
        pointer-events: auto;
    }
}

/* Section transitions */
.content-section {
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Card and button wow styles */
.dashboard-card, .agents-grid .agent-card, .task-creator, .analytics-card {
    background: var(--gradient-secondary);
    border-radius: 1.2rem;
    box-shadow: 0 0 24px 2px var(--accent-blue), 0 4px 16px rgba(0,229,255,0.12);
    border: 1.5px solid var(--accent-cyan);
    color: var(--text-primary);
    transition: box-shadow 0.2s, transform 0.2s;
}
.dashboard-card:hover, .agents-grid .agent-card:hover, .analytics-card:hover {
    box-shadow: 0 0 48px 8px var(--accent-purple), 0 8px 32px rgba(157,78,221,0.18);
    transform: translateY(-4px) scale(1.03);
}
.action-btn, button, .agent-select {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 0.7rem;
    box-shadow: 0 0 12px 2px var(--accent-cyan);
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.action-btn:hover, button:hover, .agent-select:hover {
    background: var(--accent-blue);
    box-shadow: 0 0 24px 4px var(--accent-blue);
    transform: scale(1.04);
}

/* Floating Agent Status Button */
.agent-status-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    background: var(--accent-cyan);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 16px rgba(0,229,255,0.18);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.agent-status-btn:hover {
    background: var(--accent-blue);
}

/* Agent Status Modal */
.agent-status-modal {
    display: none;
    position: fixed;
    z-index: 300;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    align-items: center;
    justify-content: center;
}
.agent-status-modal-content {
    background: var(--secondary-bg);
    color: var(--accent-cyan);
    margin: auto;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 1rem;
    width: 90vw;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,229,255,0.18);
    position: relative;
}
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2rem;
    color: var(--accent-cyan);
    cursor: pointer;
}

@media (max-width: 900px) {
    .agent-status-btn {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .agent-status-modal-content {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
        width: 96vw;
        max-width: 98vw;
    }
}

@media (max-width: 900px) {
    .sidebar {
        left: -260px;
    }
    .sidebar.open {
        left: 0;
    }
    .active-agent-bar {
        top: 56px;
        font-size: 1rem;
        padding: 0.4rem 0;
    }
    .chat-header-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    .quick-actions-mobile {
        display: flex;
        gap: 0.5rem;
        width: 100%;
        flex-wrap: wrap;
    }
    .quick-actions-mobile .action-btn {
        flex: 1 1 40%;
        font-size: 1rem;
        padding: 0.5rem 0.5rem;
        min-width: 120px;
    }
    .content-area, .main-content {
        padding-top: 3.5rem;
    }
}
/* --- Mobile Responsive Styles --- */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        padding: 0 0.5rem;
    }
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        width: 220px;
        height: 100%;
        z-index: 200;
        transition: left 0.3s;
        box-shadow: 2px 0 20px rgba(0,229,255,0.15);
    }
    .sidebar.open {
        left: 0;
    }
    .burger-btn {
        display: block;
        background: none;
        border: none;
        color: var(--accent-cyan);
        font-size: 2rem;
        margin-right: 1rem;
        z-index: 300;
        position: absolute;
        left: 1rem;
        top: 1.2rem;
    }
    .chat-sidebar {
        display: none;
    }
    .agent-info-panel {
        display: none !important;
    }
    .agent-select {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        padding: 0.5rem;
        border-radius: 6px;
        border: 1px solid var(--accent-cyan);
        background: var(--secondary-bg);
        color: var(--text-primary);
    }
}
@media (min-width: 901px) {
    .burger-btn {
        display: none;
    }
    .agent-select {
        display: none;
    }
}
/* Custodian AI Army - Futuristic Styles */

:root {
    /* Color Palette - Darker and more futuristic */
    --primary-bg: #030305;
    --secondary-bg: #0a0a14;
    --tertiary-bg: #10101c;
    --accent-blue: #00e5ff;
    --accent-cyan: #00ffff;
    --accent-purple: #9d4edd;
    --accent-green: #00ff88;
    --accent-orange: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #6b7280;
    --border-color: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #00ffff 0%, #00ff88 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 212, 255, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 212, 255, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--primary-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 255, 136, 0.04) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-move 15s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 2px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.logo i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    text-shadow: 0 0 20px var(--accent-blue);
    animation: pulse 2s infinite, neon-glow 2s ease-in-out infinite alternate;
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--accent-cyan);
    animation: neon-glow 3s ease-in-out infinite alternate;
}

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

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan);
    animation: flicker 3s infinite;
}

.status-online {
    color: var(--accent-green);
    text-shadow: 0 0 20px var(--accent-green), 0 0 40px var(--accent-green);
    animation: pulse 2s infinite;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(10, 10, 20, 0.7);
    border-right: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem 0;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
}

.nav-item:hover {
    background: rgba(22, 33, 62, 0.9);
    border-color: var(--accent-blue);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    color: var(--text-primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    border-color: var(--accent-cyan);
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.nav-item span {
    font-weight: 500;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px var(--accent-cyan);
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05), 0 0 20px rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.dashboard-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

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

.card-header h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.card-header i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

/* Overview Stats */
.overview-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.overview-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green);
    margin-bottom: 0.5rem;
}

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

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

/* Agent Status Grid */
.agent-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.agent-status-item {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition-normal);
}

.agent-status-item:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.agent-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--accent-cyan);
}

.agent-specialization {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.agent-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-idle {
    background: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-busy {
    background: rgba(255, 107, 53, 0.3);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.status-error {
    background: rgba(239, 68, 68, 0.3);
    color: var(--error);
    border: 1px solid var(--error);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.agent-card {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.agent-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
}

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

.agent-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.agent-type {
    background: rgba(139, 92, 246, 0.3);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.agent-info {
    margin-bottom: 1rem;
}

.agent-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.agent-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.capability-tag {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-blue);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Chat Interface */
.chat-container {
    display: flex;
    height: 750px;
    background: rgba(5, 5, 10, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.05), 0 0 30px rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.chat-container-desktop {
    flex-direction: column;
}

.agents-top-section {
    display: flex;
    height: 375px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

@media (max-width: 900px) {
    .agents-top-section {
        display: none !important;
    }
}

.chat-sidebar {
    width: 250px;
    background: rgba(10, 10, 20, 0.5);
    border-right: 1px solid rgba(0, 229, 255, 0.2);
    padding: 1rem;
    overflow-y: auto;
}

.chat-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.agent-info-panel {
    width: 300px;
    background: rgba(10, 10, 20, 0.5);
    border-right: 1px solid rgba(0, 229, 255, 0.2);
    padding: 1.5rem;
    overflow-y: auto;
}

.agent-info-content {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 229, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.agent-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-list-item {
    padding: 0.75rem 1rem;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.agent-list-item:hover {
    background: rgba(26, 26, 46, 0.9);
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.agent-list-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(5, 5, 10, 0.8);
}

.chat-header {
    padding: 1rem;
    background: rgba(10, 10, 20, 0.8);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    font-weight: 600;
    color: var(--accent-cyan);
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.welcome-message {
    text-align: center;
    color: var(--text-secondary);
    margin: auto;
}

.welcome-message i {
    font-size: 4rem;
    color: rgba(0, 212, 255, 0.3);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.message {
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

.message.user {
    align-self: flex-end;
}

.message.agent {
    align-self: flex-start;
}

.message-header {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.message-content {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    line-height: 1.5;
}

.user .message-content {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 255, 136, 0.2) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
    border-bottom-right-radius: 2px;
}

.agent .message-content {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chat-input-container {
    padding: 1rem;
    background: rgba(10, 10, 20, 0.9);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    gap: 1rem;
}

#chat-input {
    flex: 1;
    background: rgba(5, 5, 10, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    resize: none;
    min-height: 44px;
    max-height: 150px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#chat-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

#send-btn {
    background: var(--gradient-accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

#send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

#send-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Tasks Interface */
.tasks-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.task-creator {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.task-creator h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    font-family: 'Orbitron', monospace;
}

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

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

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

input[type="text"],
select,
textarea {
    width: 100%;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-normal);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-accent);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.task-results {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 2rem;
    overflow-y: auto;
    max-height: 600px;
}

.task-results h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
    font-family: 'Orbitron', monospace;
}

.results-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
}

.results-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.task-result {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: slideIn 0.4s ease;
}

.task-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.task-id {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.analytics-card h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    font-family: 'Orbitron', monospace;
}

.chart-placeholder {
    height: 300px;
    background: rgba(10, 10, 20, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 5, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite, glow 2s ease-in-out infinite alternate;
    margin: 0 auto 1.5rem;
}

.spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin: 0 10px 0 0;
    display: inline-block;
    vertical-align: middle;
}

/* Auth UI Styling */
.auth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.08) 0%, transparent 50%);
    z-index: 10000;
}

.auth-box {
    display: flex;
    flex-direction: row;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--accent-cyan);
    border-radius: 16px;
    padding: 3rem;
    gap: 2rem;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15), inset 0 0 20px rgba(0, 229, 255, 0.05);
    backdrop-filter: blur(20px);
    max-width: 900px;
    width: 90%;
    animation: modalPop 0.5s ease-out;
}

.auth-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-panel:hover {
    transform: translateY(-5px);
}

.login-panel:hover {
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.3);
}

.signup-panel:hover {
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.2);
    border-color: rgba(157, 78, 221, 0.3);
}

.auth-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: bold;
    gap: 1rem;
}

.divider-line {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

@media (max-width: 768px) {
    .auth-box {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    .auth-divider {
        flex-direction: row;
    }
    .divider-line {
        height: 2px;
        width: 100px;
        background: linear-gradient(to right, transparent, var(--border-color), transparent);
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2); }
    100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes neon-glow {
    0% { text-shadow: 0 0 5px var(--accent-cyan); }
    100% { text-shadow: 0 0 20px var(--accent-cyan), 0 0 30px var(--accent-blue); }
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.5; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

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

/* Utilities */
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-green { color: var(--accent-green); }

/* Markdown Styles */
.markdown-body {
    font-family: inherit;
    color: var(--text-primary);
}

.markdown-body p { margin-bottom: 1rem; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    color: var(--accent-cyan);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.markdown-body code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--accent-green);
}
.markdown-body pre {
    background: rgba(5, 5, 10, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}
.markdown-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.markdown-body ul, .markdown-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* Run/Copy Code Buttons */
.run-code-btn, .copy-code-btn {
    position: absolute;
    top: 5px;
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.run-code-btn { right: 70px; }
.copy-code-btn { right: 5px; }

.run-code-btn:hover, .copy-code-btn:hover {
    background: var(--accent-cyan);
    color: #000;
}

.code-output {
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--accent-cyan);
    padding: 10px;
    margin-top: 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.success-output { color: var(--accent-green); }
.error-output { color: var(--error); }

/* Learning Paths Styles */
.learning-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.learning-path-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.learning-path-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition-normal);
}

.learning-path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.learning-path-card:hover::before {
    opacity: 1;
}

.path-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transition: var(--transition-normal);
}

.learning-path-card:hover .path-icon {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.path-info {
    flex-grow: 1;
}

.path-title {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.path-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.path-footer {
    width: 100%;
}

.path-footer .btn {
    width: 100%;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}