/*
=====================================================
Project Name: Admin Dashboard Styling
Version: 1.0
Author: Bashar Kherz
Copyright © 2025

Colors:
- #2c3e50 → Headers
- #0D249E / #0A1F85 → Primary Buttons
- #334155 / #1F2937 → Secondary Buttons
- #F0F3F8 / #E6EBF2 → Accent Gradients
=====================================================

SECTION STRUCTURE
=====================================================
0. NAVBAR -------------------------- Logo sizing + navbar reset
1. GLOBAL -------------------------- Container + background accent
2. HEADERS ------------------------- H1 styling + underline
3. CARDS --------------------------- Card layout + effects
4. BUTTONS ------------------------- Primary & secondary
5. GRID SPACING -------------------- Row/column adjustments
6. RESPONSIVE ---------------------- Mobile & reduced motion
=====================================================
*/

/* ============================== */
/* 0. NAVBAR                      */
/* ============================== */
.navbar-brand img,
.dashboard-logo {
    height: 80px !important;   /* make it bigger */
    max-height: 80px !important;
    width: auto;
    object-fit: contain;
}

.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}


/* ============================== */
/* 1. GLOBAL                      */
/* ============================== */
.container {
    max-width: 1200px;
    padding: 20px;
}

body::before {
    content:"";
    position: fixed; inset: -120px -30% auto -30%;
    height: 260px; z-index: -1; pointer-events: none;
    background: radial-gradient(1000px 220px at 0% 0%, rgba(44,62,80,.08), transparent 60%);
    transform: skewY(-4deg);
}


/* ============================== */
/* 2. HEADERS                     */
/* ============================== */
h1,
h1.mb-4,
#admin-dashboard h1 {
    font-weight: 700;
    color: #2c3e50;
    text-align: center !important;
    margin: 6px auto 40px;
    letter-spacing: .2px;
    position: relative;
}

h1::after,
h1.mb-4::after,
#admin-dashboard h1::after {
    content:"";
    display:block;
    height: 4px; width: 150px; margin: 10px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #F0F3F8, #E6EBF2);
    box-shadow: 0 4px 12px rgba(44,62,80,.10);
    transition: width .3s ease;
}
h1:hover::after { width: 200px; }


/* ============================== */
/* 3. CARDS                       */
/* ============================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Decorative accents */
.card::before {
    content:"";
    position:absolute; top:0; left:0; right:0; height:6px;
    background: linear-gradient(90deg, #F0F3F8, #E6EBF2);
    background-size: 200% 100%;
    transition: background-position .6s ease;
}
.card:hover::before { background-position: 100% 0; }

.card::after {
    content:"";
    position:absolute; top:0; right:0; width: 86px; height: 86px;
    pointer-events:none;
    background: conic-gradient(from 230deg, rgba(44,62,80,.10), transparent 40%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.card-body {
    padding: 24px;
}
.card-body::before {
    content:"";
    display:block;
    width: 64px; height: 8px; border-radius: 999px;
    margin: -2px 0 12px 0;
    background: linear-gradient(90deg, #F0F3F8, #E6EBF2);
    box-shadow: inset 0 0 0 1px rgba(44,62,80,.06);
}


/* ============================== */
/* 4. BUTTONS                     */
/* ============================== */
.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: background-color .2s ease, transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

/* Primary */
.btn-primary {
    background: #0D249E !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(13,36,158,.22);
}
.btn-primary:hover {
    background: #0A1F85 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13,36,158,.28);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}
.btn-primary:focus-visible {
    outline: 3px solid rgba(13,36,158,.35);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(13,36,158,.18);
}

/* Secondary */
.btn-secondary {
    background: #334155 !important;
    border: 1px solid rgba(0,0,0,.14) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(31,41,55,.18);
}
.btn-secondary:hover {
    background: #1F2937 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(31,41,55,.22);
}
.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}
.btn-secondary:focus-visible {
    outline: 3px solid rgba(51,65,85,.35);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(51,65,85,.18);
}


/* ============================== */
/* 5. GRID SPACING                */
/* ============================== */
.row > [class*="col-"]{
    margin-bottom: 18px;
}


/* ============================== */
/* 6. RESPONSIVE                  */
/* ============================== */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    h1, h1.mb-4, #admin-dashboard h1 {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce){
    *{
        transition: none
        !important; animation:
        none !important;
    }
}
