/* Kaiser M Power | Elite v10.1 - Intelligence Pulse design system */
:root {
    --primary: #99001b; /* Kaiser Crimson */
    --primary-container: #cc0026;
    --secondary: #585c7d;
    --on-background: #141936;
    --surface: #fcfaff;
    --surface-container: #edecff;
    --outline: #936e6c;
    --tertiary: #2e4a71;
    --accent: #059669; /* Emerald */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--surface);
    color: var(--on-background);
    overflow-x: hidden;
}

/* Kaiser Intelligence: Typography Refinement */
h1 {
    font-size: clamp(2rem, 10vw, 4rem) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.05em !important;
}

/* Custom Scrollbar for Kaiser Suite */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Kaiser Intelligence: Glassmorphism */
.kmp-glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(153, 0, 27, 0.1);
    box-shadow: 0 8px 32px 0 rgba(153, 0, 27, 0.05);
}

.kmp-card-glow {
    position: relative;
    overflow: hidden;
}
.kmp-card-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(153, 0, 27, 0.03) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0;
}
.kmp-card-glow:hover::after {
    opacity: 1;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Intelligence Scanning Animation */
@keyframes kmp-scan {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(100%); opacity: 0; }
}
.kmp-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: kmp-scan 4s linear infinite;
    pointer-events: none;
}

@keyframes scan-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(2.5); opacity: 0.2; }
    100% { transform: scale(4); opacity: 0; }
}
.scan-pulse-effect { animation: scan-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.nav-active {
    color: var(--primary) !important;
    font-weight: 800;
    position: relative;
}
.nav-active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 3px;
    background: var(--primary);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(20, 25, 54, 0.12);
}

/* Custom Table Styles */
.kmp-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}
.kmp-table thead {
    background: #f8fafc;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
}
.kmp-table th { padding: 1.25rem 1.5rem; }
.kmp-table td { padding: 1.25rem 1.5rem; font-size: 0.875rem; border-bottom: 1px solid #f1f5f9; }

/* --- PREMIUM FEEDBACK (TOASTS) --- */
#kmp-toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    pointer-events: none;
}
.kmp-toast {
    background: rgba(20, 25, 54, 0.9);
    backdrop-filter: blur(12px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 0.75rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    animation: toast-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes toast-in {
    from { transform: translateX(100%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}
.kmp-toast.out {
    animation: toast-out 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes toast-out {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(100%) scale(0.9); opacity: 0; }
}

/* --- COMMAND CENTER (SEARCH) --- */
#kmp-command-overlay {
    background: rgba(20, 25, 54, 0.8);
    backdrop-filter: blur(24px);
}
.search-result-item {
    transition: all 0.2s ease;
}
.search-result-item:hover, .search-result-item.selected {
    background: var(--primary);
    color: white;
    transform: translateX(10px);
}

/* --- OPERATION READINESS CHECKLIST --- */
.readiness-chip {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}
.readiness-chip.done { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.readiness-chip.pending { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* Font Initialization Protective Shield */
.material-symbols-outlined {
    font-display: block;
    overflow: hidden;
    white-space: nowrap;
    width: 1em;
    height: 1em;
    display: inline-block;
}
