﻿/* ========================================
   ELDNET V2.0 - 2025 DESIGN SYSTEM
   Theme: "Ocean & Sun" (Blue/Cyan & Gold/Yellow)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* PRIMARY: Blue Gradient (Deep to Light) */
    --primary-gradient: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%);
    --primary-dark: #00369e;
    --primary-light: #e0f2fe;
    /* ACCENT: Yellow/Gold (Sunlight) */
    --accent-yellow: #FFD700;
    --accent-gradient: linear-gradient(135deg, #FFC107 0%, #FFD700 100%);
    --accent-hover: #ffdb4d;
    /* FUNCTIONAL COLORS */
    --success: #059669;
    --success-bg: #ecfdf5;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --info: #0ea5e9;
    --info-bg: #f0f9ff;
    /* NEUTRALS - High Contrast for Readability */
    --bg-body: #F4F7FE; /* Very light cool gray/blue */
    --bg-surface: #ffffff;
    --text-main: #1E293B; /* Slate 800 */
    --text-muted: #64748B; /* Slate 500 */
    --border-color: #e2e8f0;
    /* MODERN UI TOKENS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* === NAVBAR === */
.navbar-custom {
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

    .navbar-custom .navbar-brand {
        font-weight: 800;
        color: var(--primary-dark) !important;
        font-size: 1.5rem;
    }

    .navbar-custom .nav-link {
        font-weight: 600;
        color: var(--text-muted) !important;
        transition: var(--transition);
    }

        .navbar-custom .nav-link:hover,
        .navbar-custom .nav-link.active {
            color: var(--primary-dark) !important;
        }

/* === BUTTONS (2025 Style - Rounded, Solid) === */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-dark); /* Solid blue for better text contrast */
    color: white;
    box-shadow: 0 4px 6px rgba(0, 82, 212, 0.2);
}

    .btn-primary:hover {
        background: #0044b3;
        transform: translateY(-1px);
        box-shadow: 0 6px 10px rgba(0, 82, 212, 0.3);
    }

.btn-accent {
    background: var(--accent-gradient);
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.2);
}

    .btn-accent:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 12px rgba(255, 193, 7, 0.35);
        background: #ffda46;
    }

/* === CARD SYSTEM === */
.card-modern {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid white;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}

.card-header-modern {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body-modern {
    padding: 1.5rem;
}

/* === TABLE STYLES (Fixed Readability) === */
.table-container {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1rem;
    margin-top: 1.5rem;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .table-modern th {
        background: var(--bg-surface);
        color: var(--text-muted);
        font-size: 0.75rem;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.05em;
        padding: 1rem 1.5rem;
        border-bottom: 2px solid var(--border-color);
    }

    .table-modern td {
        padding: 1rem 1.5rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-main);
        font-weight: 500;
    }

    .table-modern tr:last-child td {
        border-bottom: none;
    }

    .table-modern tr:hover td {
        background-color: var(--info-bg); /* Very light blue hover */
    }

/* STATUS BADGES - High Readability */
.status-badge {
    padding: 0.35em 0.8em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.status-approved {
    background: var(--success-bg);
    color: var(--success);
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* === FORMS (Modern Input) === */
.form-page {
    min-height: 85vh;
    padding: 2rem 1rem;
    background: var(--bg-body);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background-color: var(--bg-surface);
}

    .form-control:focus, .form-select:focus {
        border-color: #4364F7;
        box-shadow: 0 0 0 4px rgba(67, 100, 247, 0.1);
        outline: none;
    }

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-dark);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* === AUTHENTICATION CENTERING & BG === */
.auth-bg {
    /* Takes up full viewport */
    min-height: 100vh;
    width: 100%;
    /* Flexbox Center alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Theme Gradient Background */
    background: radial-gradient(at 0% 0%, hsla(220,100%,96%,1) 0px, transparent 50%), radial-gradient(at 100% 100%, hsla(45,100%,94%,1) 0px, transparent 50%), #ffffff;
    padding: 2rem;
}

/* Enhances the auth container to sit nicely in the center */
.auth-container {
    width: 100%;
    max-width: 480px; /* Limits width */
    margin: 0 auto;
    /* Animation */
    animation: zoomIn 0.4s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}