@tailwind base;
@tailwind components;
@tailwind utilities;

/* --- MODERN AERO THEME --- */
:root {
    --bg-mesh: radial-gradient(at 0% 0%, rgba(167, 139, 250, 0.15) 0px, transparent 50%), 
               radial-gradient(at 100% 0%, rgba(129, 140, 248, 0.15) 0px, transparent 50%), 
               radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%), 
               radial-gradient(at 0% 100%, rgba(192, 132, 252, 0.15) 0px, transparent 50%);
}

body {
    background-color: #f8fafc; /* Slate-50 */
    background-image: var(--bg-mesh);
    background-attachment: fixed;
    background-size: cover;
    color: #334155; /* Slate-700 */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- NEW GLASS CARD (Light Mode) --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.02), 
        0 2px 4px -1px rgba(0, 0, 0, 0.02),
        0 20px 40px -10px rgba(99, 102, 241, 0.05); /* Soft Indigo Glow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.05), 
        0 4px 6px -2px rgba(0, 0, 0, 0.02),
        0 30px 60px -15px rgba(99, 102, 241, 0.15);
}

/* --- NAVIGATION BAR --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8); /* Slate-200 */
}

/* --- INPUT FIELDS --- */
input, select, textarea {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid #e2e8f0 !important; /* Slate-200 */
    color: #1e293b !important; /* Slate-800 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

input:focus, select:focus, textarea:focus {
    border-color: #6366f1 !important; /* Indigo-500 */
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* --- TABLES --- */
table thead tr {
    background-color: #f1f5f9; /* Slate-100 */
    border-bottom: 1px solid #e2e8f0;
    color: #64748b; /* Slate-500 */
}

table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

table tbody tr:hover {
    background-color: #f8fafc;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- ANIMATIONS --- */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

/* Overrides for specific dark utility clashes */
.bg-\[\#0b0a12\] { background-color: transparent !important; } /* Kill the dark body */
.bg-\[\#0f0e16\] { background-color: rgba(255, 255, 255, 0.6) !important; border: 1px solid #e2e8f0; } /* Kill dark cards */
.text-slate-600 { color: #475569 !important; } /* Switch main text to Slate-600 */
.text-slate-500 { color: #64748b !important; } /* Switch secondary text to Slate-500 */
.text-slate-400 { color: #94a3b8 !important; } /* Switch muted text to Slate-400 */
.border-white\/5, .border-white\/10 { border-color: #e2e8f0 !important; } /* Switch borders to Slate-200 */
.text-slate-900 { color: #1e293b !important; } /* Switch White text to Slate-800 (Dark) */
.hover\:bg-white\/5:hover { background-color: #f1f5f9 !important; } /* Hover states */

/* Fix Buttons that should stay white text */
button.bg-indigo-600, a.bg-indigo-600, .bg-indigo-600 {
    color: #ffffff !important;
}
.bg-black\/20 { background-color: rgba(255,255,255,1) !important; border: 1px solid #cbd5e1; }

/* Convert leftover dark modal/card panels to light so text stays readable */
.bg-\[\#13121b\] { background-color: #ffffff !important; }
.bg-\[\#18181b\] { background-color: #ffffff !important; }

