/* ========================================
   GLOBAL
======================================== */

* {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* ========================================
   PREMIUM DARK HEADER
======================================== */

.navbar-premium {
    background: linear-gradient(135deg, #0d1117, #161b22);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
}

.navbar-premium .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: .5px;
}

.navbar-premium .nav-link {
    color: rgba(255,255,255,.75) !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: .3s;
}

.navbar-premium .nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff !important;
}

.navbar-premium .nav-link.active {
    background: linear-gradient(90deg,#2563eb,#4f46e5);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(79,70,229,.7);
}

/* ========================================
   CARDS
======================================== */

.card {
    border-radius: 16px;
    border: none;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.card-header {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 14px 18px;
    font-weight: 600;
}

/* ========================================
   SEARCH BOX (FIXED SIZE)
======================================== */

.input-group .form-control {
    border-radius: 0 8px 8px 0;
    height: 42px;
    font-size: .95rem;
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background: #0d1117;
    color: white;
}

/* ========================================
   TABLE
======================================== */

.table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.table td {
    vertical-align: middle;
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(90deg,#2563eb,#4f46e5);
    border: none;
}

.btn-outline-primary:hover {
    background: #2563eb;
    color: white;
}

.btn-outline-success:hover {
    background: #16a34a;
    color: white;
}

.btn-outline-danger:hover {
    background: #dc2626;
    color: white;
}

/* ========================================
   PAGE TITLE
======================================== */

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

/* ========================================
   MODAL
======================================== */

.modal-content {
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,.4);
}

.modal-header {
    background: #0d1117;
    color: white;
}

/* ========================================
   INPUT FOCUS
======================================== */

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ========================================
   PREMIUM DARK FOOTER
======================================== */

.footer-dark {
    background: linear-gradient(135deg, #0d1117, #161b22);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -6px 30px rgba(0,0,0,.6);
    padding: 20px 0;
}

.footer-dark,
.footer-dark span,
.footer-dark strong {
    color: #ffffff !important;
}

.footer-dark a {
    color: #4dabf7 !important;
    font-weight: 600;
}

.footer-dark a:hover {
    color: white !important;
}

/* ========================================
   MOBILE TABLE
======================================== */

@media (max-width: 768px) {
    table thead {
        display: none;
    }

    table tbody tr {
        display: block;
        background: white;
        border-radius: 14px;
        margin-bottom: 14px;
        padding: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,.05);
    }

    table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border: none;
    }

    table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
    }

    table tbody td[data-label="Actions"] {
        justify-content: flex-end;
        gap: 8px;
    }

    table tbody td[data-label="Actions"]::before {
        display: none;
    }
}

/* ===== Premium Dashboard Cards ===== */

.dashboard-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 18px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transition: 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* Soft glowing bar */
.dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
}

/* Card content */
.dashboard-card h6 {
    color: #64748b;
    font-size: .85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.dashboard-card h2 {
    font-weight: 700;
    color: #0f172a;
}

/* Icon bubble */
.dashboard-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 8px 25px rgba(79,70,229,0.6);
}

/* Footer text */
.dashboard-card small {
    color: #64748b;
}

/* Mobile spacing */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 15px;
    }
}

/* Scrollable customer table */
.table-wrapper {
    max-height: 70vh;          /* fits screen height */
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 12px;
}

/* Keep table header fixed while scrolling */
.table-wrapper thead th {
    position: sticky;
    top: 0;
    background: #0b0f14;       /* premium dark header */
    color: #fff;
    z-index: 10;
}

/* Smooth scrollbar for modern look */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
}
.table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #444, #222);
    border-radius: 10px;
}
.table-wrapper::-webkit-scrollbar-track {
    background: #0b0f14;
}







