
/* Custom Styles & Utilities */

:root {
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(51, 65, 85, 0.5);
    --neon-green: #22c55e;
    --status-operational: #4ade80;
    --status-secure: #60a5fa;
    --status-warning: #f59e0b;
    --status-error: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: #cbd5e1;
    overflow: hidden;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #020617; /* Slate 950 */
    color: #cbd5e1; /* Slate 300 */
}

/* System Overview Grid */
.system-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
/* Enhanced Status Cards */
.status-card {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-green);
}
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.status-indicator.operational {
    background: var(--status-operational);
    box-shadow: 0 0 8px var(--status-operational);
}

.status-indicator.secure {
    background: var(--status-secure);
    box-shadow: 0 0 8px var(--status-secure);
}

.status-indicator.warning {
    background: var(--status-warning);
    box-shadow: 0 0 8px var(--status-warning);
}

.status-indicator.error {
    background: var(--status-error);
    box-shadow: 0 0 8px var(--status-error);
}
/* Enhanced Animations */
@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--status-operational); }
    50% { opacity: 0.8; box-shadow: 0 0 20px var(--status-operational); }
}

@keyframes pulse-blue {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--status-secure); }
    50% { opacity: 0.8; box-shadow: 0 0 20px var(--status-secure); }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--status-error); }
    50% { opacity: 0.7; box-shadow: 0 0 20px var(--status-error); }
}
/* Fade Out Animation */
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Audit Log Entries */
.log-entry {
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    border-left: 3px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.log-entry:hover {
    background: rgba(30, 41, 59, 0.8);
}

.log-entry.info {
    border-color: #3b82f6;
}

.log-entry.success {
    border-color: #22c55e;
}

.log-entry.warning {
    border-color: #f59e0b;
}

.log-entry.error {
    border-color: #ef4444;
}

.log-entry .timestamp {
    color: #64748b;
    font-size: 0.75rem;
    min-width: 80px;
}

.log-entry .type {
    color: #94a3b8;
    font-weight: 600;
    min-width: 100px;
}

.log-entry .message {
    color: #e2e8f0;
    flex: 1;
}

.log-entry .details {
    color: #64748b;
    font-size: 0.75rem;
}
/* Memory Items */
.memory-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.memory-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #3b82f6;
    transform: translateX(4px);
}

/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-card img {
    transition: border-color 0.3s ease;
}

/* Timeline */
.operations-timeline {
    position: relative;
}

/* Modal Styles */
#contact-modal {
    animation: modalFadeIn 0.3s ease-out;
}

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

#contact-modal .avatar-ring {
    position: relative;
}

#contact-modal .avatar-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #22c55e, #3b82f6);
    z-index: -1;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.memory-item .memory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.memory-item .memory-title {
    color: #e2e8f0;
    font-weight: 500;
}

.memory-item .memory-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
}

.memory-item .memory-preview {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569; 
}

/* Loading States */
.typing-cursor::after {
    content: '▋';
    animation: blink 1s step-start infinite;
    color: var(--neon-green);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Button Enhancements */
.btn-glitch {
    position: relative;
    overflow: hidden;
}

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

.btn-glitch:hover::after {
    left: 100%;
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scanline::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Typography Enhancements */
.font-tech {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Custom Button Effects */
.btn-glitch {
    position: relative;
    overflow: hidden;
}
.btn-glitch::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-glitch:hover::after {
    left: 100%;
}

/* Loader */
.typing-cursor::after {
    content: '▋';
    animation: blink 1s step-start infinite;
    color: var(--neon-green);
}

@keyframes blink {
    50% { opacity: 0; }
}
/* Toast Notification */
.toast {
    transform: translateX(100%);
    animation: slideIn 0.3s forwards;
    backdrop-filter: blur(8px);
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

/* Enhanced Navigation Transitions */
.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

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

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Glassmorphism Enhancement */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Typography */
.font-tech {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Anti-Exposure Core Styles */
@keyframes alertPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.threat-alert {
    animation: alertPulse 2s infinite;
}

/* Data Protection Badge */
.protection-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.emergency-active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    animation: alertPulse 1s infinite;
}

/* Cognitive Core Animations */
@keyframes neuralPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.3);
    }
    50% { 
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.5);
    }
}

.cognitive-active {
    animation: neuralPulse 3s infinite;
}

/* Reasoning Trace Animations */
.reasoning-step {
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.reasoning-step.processing {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.reasoning-step.complete {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

/* AI Orchestration Visualizer */
.orchestration-node {
    position: relative;
    transition: all 0.3s ease;
}

.orchestration-node.active::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #22c55e);
    opacity: 0.5;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

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

