/* ===========================================
   NEXUS CORE - CSS COMPLETO
   =========================================== */

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

:root {
    --primary: #00f0ff;
    --secondary: #ff00ff;
    --bg-dark: #050510;
    --bg-card: #0a0a1a;
    --bg-card-hover: #12122a;
    --text: #e0e0e0;
    --text-muted: #888;
    --success: #00ff88;
    --danger: #ff4444;
    --border: rgba(0, 240, 255, 0.1);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

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

/* ===========================================
   LOGIN SCREEN
   =========================================== */

.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 2;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
    z-index: 100;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: -2px; }
    100% { top: 100%; }
}

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
}

.login-card {
    background: rgba(10, 10, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(0, 240, 255, 0.1),
        0 0 100px rgba(255, 0, 255, 0.05);
    animation: cardAppear 1s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00f0ff, transparent, #ff00ff, transparent, #00f0ff);
    border-radius: 26px;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
    background-size: 400% 400%;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
    animation: logoRotate 20s linear infinite;
}

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

.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px dashed rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    animation: logoSpin 10s linear infinite reverse;
}

@keyframes logoSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00f0ff 0%, #ff00ff 50%, #00f0ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
    letter-spacing: 4px;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-top: 8px;
    letter-spacing: 2px;
}

.login-form {
    margin-top: 40px;
}

.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    stroke: rgba(0, 240, 255, 0.5);
    transition: stroke 0.3s ease;
}

.input-group:hover .input-icon,
.input-group:focus-within .input-icon {
    stroke: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #00f0ff 0%, #00c8ff 50%, #ff00ff 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn::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;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.4);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    stroke: #000;
    transition: transform 0.3s ease;
}

.login-btn:hover svg {
    transform: translateX(5px);
}

.error-msg {
    color: #ff4444;
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    min-height: 24px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.login-footer span {
    color: var(--primary);
}

.developer-credit {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.developer-credit p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.developer-credit span {
    color: var(--primary);
    font-weight: 600;
}

.status-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 10;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: statusPulse 2s ease infinite;
}

.status-dot.green { background: var(--success); }
.status-dot.purple { background: var(--secondary); }

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

/* ===========================================
   MAIN APP
   =========================================== */

.main-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 80px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar:hover {
    width: 240px;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.sidebar-header span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar:hover .sidebar-header span {
    opacity: 1;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    stroke: currentColor;
}

.nav-item span {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-item span {
    opacity: 1;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
    color: var(--primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-color: var(--primary);
    color: var(--primary);
}

.sidebar-footer {
    padding: 20px 10px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}

.user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar svg {
    width: 20px;
    height: 20px;
    stroke: #000;
}

.user-details {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .user-details {
    opacity: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.75rem;
    color: var(--success);
}

.logout-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: var(--danger);
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 80px;
    min-height: 100vh;
    position: relative;
}

.panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.panel.hidden {
    display: none;
}

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

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

.panel-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-header select {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.panel-header select:focus {
    outline: none;
    border-color: var(--primary);
}

.panel-header button {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-header button:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* Editor Panel */
.editor-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-editor {
    text-align: center;
    color: var(--text-muted);
}

.empty-editor svg {
    width: 80px;
    height: 80px;
    stroke: var(--border);
    margin-bottom: 20px;
}

.empty-editor p {
    font-size: 1.1rem;
}

/* Files Panel */
.file-tree {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    height: calc(100vh - 200px);
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: var(--bg-card-hover);
}

.file-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.file-item.folder svg {
    stroke: #ffd700;
}

.file-item .file-name {
    flex: 1;
    font-size: 1rem;
}

.file-item .file-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-item:hover .file-actions {
    opacity: 1;
}

/* Terminal Panel */
.terminal-container {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 12px;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 8px;
    color: #00ff00;
}

.terminal-line.system {
    color: var(--primary);
}

.terminal-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border);
}

.terminal-prompt {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}

.terminal-input-container input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #00ff00;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-input-container input:focus {
    outline: none;
    border-color: var(--primary);
}

.terminal-input-container button {
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-input-container button:hover {
    background: var(--secondary);
    color: #fff;
}

/* AI Chat Panel */
.ai-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.ai-welcome {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.ai-welcome svg {
    margin-bottom: 20px;
}

.ai-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    max-width: 80%;
}

.ai-message.user {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 200, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
    margin-left: auto;
}

.ai-message.assistant {
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
}

.ai-message .role {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.ai-message .content {
    line-height: 1.6;
    white-space: pre-wrap;
}

.ai-message.loading .content {
    color: var(--text-muted);
}

.loading-dots span {
    animation: blink 1.4s infinite both;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

.ai-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border);
}

.ai-input-container textarea {
    flex: 1;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    resize: none;
    min-height: 50px;
}

.ai-input-container textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.ai-input-container button {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-input-container button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
}

/* System Panel */
.system-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
}

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

.system-info .info-card {
    background: var(--bg-card-hover);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.system-info .info-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.system-info .info-card p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.modal-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.modal-content input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 20px;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cancel-btn,
.confirm-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.cancel-btn:hover {
    background: var(--bg-card-hover);
}

.confirm-btn {
    background: var(--primary);
    border: none;
    color: #000;
}

.confirm-btn:hover {
    background: var(--secondary);
    color: #fff;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: var(--text);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

.toast.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.tab.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-color: var(--primary);
    color: var(--primary);
}

.tab .close-tab {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tab .close-tab:hover {
    background: var(--danger);
    color: #fff;
}

/* Utilities */
.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Agents Panel */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

.agent-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary);
}

.agent-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

.agent-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.agent-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 0, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary);
}

.agent-badge.success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.agent-badge.info {
    background: rgba(0, 240, 255, 0.2);
    color: var(--primary);
}

/* AI Controls */
.ai-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.clear-memory-btn {
    padding: 8px 16px;
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid var(--danger);
    border-radius: 8px;
    color: var(--danger);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-memory-btn:hover {
    background: var(--danger);
    color: #fff;
}

/* File path bar */
.file-path {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card-hover);
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.back-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.back-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .sidebar:hover {
        width: 60px;
    }

    .sidebar-header span,
    .nav-item span,
    .user-details {
        display: none;
    }

    .main-content {
        margin-left: 60px;
    }

    .panel {
        padding: 20px;
    }
}