/* ------------------------------------------------------------
   Enterprise Reports - Global Styles
   ------------------------------------------------------------ */

/* Reset tweaks */
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}

/* ------------------------------------------------------------
   Layout: Sidebar
   ------------------------------------------------------------ */

#sidebar {
    min-height: 100vh;
    background-color: #f8f9fa;
    transition: background-color .3s ease, color .3s ease;
}

    #sidebar .nav-link {
        color: #333;
        padding: .5rem .75rem;
        border-radius: 4px;
        transition: background-color .2s ease;
    }

        #sidebar .nav-link:hover {
            /*background-color: #e2e6ea;*/
            background-color: #f8d7da !important;
        }

        #sidebar .nav-link.text-danger:hover {
            background-color: #f8d7da;
        }

        #sidebar .nav-link.text-warning:hover {
            background-color: #fff3cd;
        }

/* Dark mode sidebar */
body.bg-dark #sidebar {
    background-color: #1f1f1f;
    color: #f1f1f1;
}

    body.bg-dark #sidebar .nav-link {
        color: #e0e0e0;
    }

        body.bg-dark #sidebar .nav-link:hover {
            background-color: #333;
        }

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */

.navbar-brand {
    font-weight: 700;
    letter-spacing: .5px;
}

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */

.card {
    border-radius: 8px;
    transition: background-color .3s ease, color .3s ease, box-shadow .2s ease;
}

    .card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    }

/* Dark mode cards */
body.bg-dark .card {
    background-color: #2b2b2b;
    color: #f1f1f1;
}

/* ------------------------------------------------------------
   Tables
   ------------------------------------------------------------ */

.table {
    font-size: .9rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.05);
}

body.bg-dark .table-hover tbody tr:hover {
    background-color: rgba(255,255,255,.08);
}

/* ------------------------------------------------------------
   Pagination
   ------------------------------------------------------------ */

/*.pagination .page-item .page-link {
    color: #0d6efd;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}*/

/* Dark mode pagination */
/*body.bg-dark .pagination .page-item .page-link {
    background-color: #2b2b2b;
    color: #9ec5fe;
    border-color: #444;
}

body.bg-dark .pagination .page-item.active .page-link {
    background-color: #0d6efd;
    color: #fff;
}*/

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */

.form-control,
.form-select {
    border-radius: 6px;
}

body.bg-dark .form-control,
body.bg-dark .form-select {
    background-color: #2b2b2b;
    color: #f1f1f1;
    border-color: #555;
}

    body.bg-dark .form-control:focus,
    body.bg-dark .form-select:focus {
        background-color: #333;
        border-color: #888;
    }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
    border-radius: 6px;
}

/* Dark mode buttons */
body.bg-dark .btn-outline-light {
    border-color: #ccc;
    color: #eee;
}

/* ------------------------------------------------------------
   Dashboard
   ------------------------------------------------------------ */

#dashboardChart {
    margin-top: 20px;
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ------------------------------------------------------------
   Admin Panel
   ------------------------------------------------------------ */

.card.border-danger {
    border-width: 2px;
}

.card.border-warning {
    border-width: 2px;
}

.card.border-primary {
    border-width: 2px;
}

.card.border-success {
    border-width: 2px;
}

/* ------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------ */

.text-small {
    font-size: .85rem;
}

.pointer {
    cursor: pointer;
}

.fade-in {
    animation: fadeIn .3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ------------------------------------------------------------
   Dark Mode Global
   ------------------------------------------------------------ */

body.bg-dark {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

    body.bg-dark a {
        color: #9ec5fe;
    }

    body.bg-dark .table {
        color: #e0e0e0;
    }

    body.bg-dark .table-striped > tbody > tr:nth-of-type(odd) {
        background-color: #1f1f1f;
    }

    body.bg-dark .table-striped > tbody > tr:nth-of-type(even) {
        background-color: #2b2b2b;
    }

.theme-blue {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --bg: #f8f9fa;
    --text: #212529;
}

    .theme-blue body {
        background-color: var(--bg);
        color: var(--text);
    }

    .theme-blue .navbar,
    .theme-blue #sidebar {
        background-color: #0d6efd;
        color: #fff;
    }

    .theme-blue .btn-primary {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }


.theme-slate {
    --bg: #1e1e2f;
    --panel: #2c2c3e;
    --text: #e0e0e0;
    --accent: #4dabf7;
}

    .theme-slate body {
        background-color: var(--bg);
        color: var(--text);
    }

    .theme-slate #sidebar {
        background-color: var(--panel);
    }

    .theme-slate .card {
        background-color: var(--panel);
        color: var(--text);
    }

    .theme-slate a {
        color: var(--accent);
    }


.theme-neon {
    --bg: #0a0a0f;
    --panel: #11111a;
    --text: #e0e0ff;
    --accent: #ff00ff;
    --accent2: #00ffff;
}

    .theme-neon body {
        background-color: var(--bg);
        color: var(--text);
    }

    .theme-neon #sidebar {
        background-color: var(--panel);
        border-right: 2px solid var(--accent);
    }

    .theme-neon .card {
        background-color: var(--panel);
        border: 1px solid var(--accent2);
    }

    .theme-neon a {
        color: var(--accent2);
    }


.theme-glass {
    --bg: #e8e8e8;
    --glass: rgba(255, 255, 255, 0.25);
    --blur: blur(10px);
    --text: #333;
}

    .theme-glass body {
        background: linear-gradient(135deg, #dfe9f3, #ffffff);
        color: var(--text);
    }

    .theme-glass #sidebar {
        background: var(--glass);
        backdrop-filter: var(--blur);
        border-right: 1px solid rgba(255,255,255,0.4);
    }

    .theme-glass .card {
        background: var(--glass);
        backdrop-filter: var(--blur);
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.4);
    }
