/* ==========================================
   assets/css/style.css - MAIN THEME & GLOBAL VARIABLES
========================================== */

/* 1. Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* 2. Universal Color Palette (The Core Brain) */
:root {
    /* ☀️ ERP Light Theme Variables */
    --primary: #1e5bdf;
    --primary-hover: #1545b3;
    --bg-light: #f4f7fc;
    --card-light: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-light: #edf2f7;

    /* 🌙 Netflix Dark Theme Variables */
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --text-light: #f8fafc;
    --accent-neon: #38bdf8;
    
    /* 🚥 Universal Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --purple: #8b5cf6;
}

/* 3. Base Reset */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; /* Default ERP Font */
}

body { 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================
   🎬 SMART MODE SWITCHER (Netflix Mode)
========================================== */
/* Jab body par netflix-active class aayegi (via header.php), sab kuch change ho jayega! */
/* 🎬 SMART MODE SWITCHER (Netflix Mode) */
body.netflix-active { 
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* 🛠️ CTO FIX: Protect FontAwesome Icons from being destroyed by text font */
body.netflix-active *:not(.fas):not(.far):not(.fab):not(.fa):not(i) { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}
/* ==========================================
   🧩 GLOBAL COMPONENTS (Buttons & Cards)
========================================== */

/* Premium Dashboard Cards */
.dashboard-card {
    background: var(--card-light); 
    padding: 30px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.dashboard-title {
    color: #0d276b; 
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 700;
}

/* Premium Buttons */
.btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(30,91,223,0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,91,223,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}