/* =============================================================
   GurbaniSewa Admin Panel – Modern Redesign
   PHP 8.4 Compatible | Collapsible Sidebar | Max Data Space
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --sidebar-w:        220px;
    --sidebar-w-mini:   62px;
    --topbar-h:         56px;
    --brand-red:        #C90000;
    --brand-red-dark:   #a00;
    --sidebar-bg:       #141422;
    --sidebar-hover:    #1e1e38;
    --sidebar-active:   #C90000;
    --topbar-bg:        #1e1e2e;
    --content-bg:       #f0f2f7;
    --card-bg:          #ffffff;
    --text-primary:     #1a1a2e;
    --text-muted:       #6c757d;
    --border:           #e2e6ea;
    --shadow:           0 2px 12px rgba(0,0,0,.08);
    --shadow-sm:        0 1px 4px rgba(0,0,0,.06);
    --radius:           8px;
    --transition:       0.22s ease;
}

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    font-size: 13.5px;
    color: var(--text-primary);
    background: var(--content-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c8d4; border-radius: 4px; }

/* ── Wrapper ──────────────────────────────────────────────── */
#wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--content-bg);
}

/* ── TOP NAV BAR ─────────────────────────────────────────── */
.navbar-cls-top {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--topbar-bg);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 1050;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.navbar-cls-top .navbar-header {
    background: var(--brand-red);
    width: var(--sidebar-w);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width var(--transition);
    flex-shrink: 0;
}

body.sidebar-mini .navbar-cls-top .navbar-header {
    width: var(--sidebar-w-mini);
}

.navbar-cls-top .navbar-brand {
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: transparent !important;
    width: auto;
    height: auto;
    line-height: 1;
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}

/* Hamburger toggle */
#sidebar-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,.75);
    font-size: 20px;
    cursor: pointer;
    padding: 0 18px;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
#sidebar-toggle:hover { color: #fff; }

/* Top-right user area */
.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding-right: 20px;
    gap: 10px;
}
.topbar-right .admin-label {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 500;
}
.topbar-right .btn-logout {
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
    cursor: pointer;
}
.topbar-right .btn-logout:hover { background: var(--brand-red-dark); color: #fff; }

/* Old Bootstrap navbar compat */
.navbar-default { border: none; }
.navbar-toggle { display: none !important; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.navbar-side {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1040;
    border: none;
    transition: width var(--transition);
    box-shadow: 2px 0 8px rgba(0,0,0,.18);
}

body.sidebar-mini .navbar-side {
    width: var(--sidebar-w-mini);
}

/* Sidebar nav list */
.sidebar-collapse { background: none; }
.sidebar-collapse .nav { padding: 8px 0; background: none; }

.sidebar-collapse > .nav > li > a {
    color: rgba(255,255,255,.72);
    background: transparent;
    text-shadow: none;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    transition: background var(--transition), color var(--transition), padding var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-collapse > .nav > li > a i {
    font-size: 15px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 0;
    transition: color var(--transition);
}

.sidebar-collapse > .nav > li > a:hover,
.sidebar-collapse > .nav > li > a:focus {
    background: var(--sidebar-hover);
    color: #fff;
    border-left-color: var(--brand-red);
    outline: 0;
}

.sidebar-collapse > .nav > li.active > a,
.sidebar-collapse > .nav > li > a.active-menu {
    background: rgba(201,0,0,.15);
    color: #fff;
    border-left-color: var(--brand-red);
}

/* Section label text — hide when mini */
.sidebar-collapse > .nav > li > a .nav-label {
    transition: opacity var(--transition), width var(--transition);
    overflow: hidden;
    white-space: nowrap;
}

body.sidebar-mini .sidebar-collapse > .nav > li > a .nav-label,
body.sidebar-mini .sidebar-collapse > .nav > li > a .fa.arrow {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

/* Section dividers */
.sidebar-collapse > .nav > li {
    border-bottom: 1px solid rgba(255,255,255,.04);
}

/* Sub-menu */
.nav-second-level {
    background: rgba(0,0,0,.25);
    padding: 4px 0;
}

.nav-second-level > li > a {
    color: rgba(255,255,255,.6);
    padding: 8px 14px 8px 46px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-second-level > li > a:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-left-color: var(--brand-red);
}

/* Sub-menu connecting lines */
.nav-second-level > li > a:before {
    content: "";
    display: block;
    position: absolute;
    left: 22px;
    width: 12px;
    height: 1px;
    background: rgba(201,0,0,.5);
    top: 50%;
}

.nav-second-level > li > a:after,
.nav-third-level > li > a:after {
    content: "";
    display: block;
    position: absolute;
    left: 22px;
    width: 1px;
    height: 100%;
    background: rgba(201,0,0,.25);
    top: 0;
    z-index: 10;
}

.nav-second-level > li:last-child > a:after { height: 50%; }

/* Hide sub-menu text in mini mode */
body.sidebar-mini .nav-second-level { display: none !important; }
body.sidebar-mini .sidebar-collapse .nav > li > a { padding: 12px 0; justify-content: center; }

/* Arrow chevron */
.arrow { float: right; margin-left: auto; }
.fa.arrow:before { content: "\f104"; }
.active > a > .fa.arrow:before { content: "\f107"; }

/* Sidebar tooltip in mini mode */
body.sidebar-mini .navbar-side .nav > li {
    position: relative;
}

/* ── MAIN CONTENT ────────────────────────────────────────── */
#page-wrapper {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    min-height: calc(100vh - var(--topbar-h));
    background: var(--content-bg);
    padding: 20px 22px;
    transition: margin-left var(--transition);
    width: calc(100% - var(--sidebar-w));
}

body.sidebar-mini #page-wrapper {
    margin-left: var(--sidebar-w-mini);
    width: calc(100% - var(--sidebar-w-mini));
}

/* ── PAGE INNER CARD ─────────────────────────────────────── */
#page-inner {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    min-height: 300px;
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.page-header-bar h2, .page-header-bar h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── CARDS / PANELS ──────────────────────────────────────── */
.panel {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.panel-heading {
    background: var(--brand-red) !important;
    color: #fff !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 16px;
    border: none;
}

.panel-body { padding: 16px; }

/* ── TABLES ──────────────────────────────────────────────── */
.table {
    font-size: 13px;
    margin-bottom: 0;
    width: 100%;
}

.table > thead > tr > th {
    background: #f7f8fb;
    border-bottom: 2px solid var(--border);
    color: #4a4e69;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 12px;
    white-space: nowrap;
}

.table > tbody > tr > td {
    padding: 9px 12px;
    border-top: 1px solid #f1f3f8;
    vertical-align: middle;
    color: #374151;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background: #fafbfd;
}

.table-hover > tbody > tr:hover > td {
    background: #f0f4ff;
}

.table-responsive {
    border: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 12px;
    transition: all var(--transition);
}

.btn-danger  { background: #e53935; border-color: #e53935; }
.btn-danger:hover { background: #c62828; border-color: #c62828; }
.btn-success { background: #2e7d32; border-color: #2e7d32; }
.btn-success:hover { background: #1b5e20; border-color: #1b5e20; }
.btn-primary { background: #1565c0; border-color: #1565c0; }
.btn-primary:hover { background: #0d47a1; border-color: #0d47a1; }
.btn-warning { background: #f57f17; border-color: #f57f17; color:#fff; }
.btn-warning:hover { background: #e65100; border-color: #e65100; color:#fff; }
.btn-info    { background: #0277bd; border-color: #0277bd; }
.btn-info:hover { background: #01579b; border-color: #01579b; }

.btn-sm { padding: 3px 9px; font-size: 12px; }
.btn-xs { padding: 2px 7px; font-size: 11.5px; }

.square-btn-adjust { border-radius: 5px; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-control {
    border-radius: 5px;
    border: 1px solid #d1d5db;
    font-size: 13.5px;
    height: 36px;
    padding: 6px 10px;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21,101,192,.12);
    outline: none;
}

select.form-control { height: 36px; }
textarea.form-control { height: auto; min-height: 80px; }

label {
    font-weight: 600;
    font-size: 12.5px;
    color: #374151;
    margin-bottom: 4px;
}

.form-group { margin-bottom: 14px; }

/* ── ALERTS & FLASH ──────────────────────────────────────── */
.alert {
    border-radius: var(--radius);
    font-size: 13.5px;
    padding: 10px 14px;
    border: none;
}
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-danger  { background: #fdecea; color: #c62828; }
.alert-info    { background: #e3f2fd; color: #0d47a1; }
.alert-warning { background: #fff8e1; color: #e65100; }

.error { color: #e53935; font-size: 12px; margin-top: 3px; }

/* ── HEADINGS ────────────────────────────────────────────── */
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); }
h3 { font-size: 17px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; padding-top: 6px; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
    background: transparent;
    padding: 6px 0;
    margin-bottom: 6px;
    font-size: 12.5px;
}
.breadcrumb > .active { color: var(--brand-red); font-weight: 600; }

/* ── BADGES & LABELS ─────────────────────────────────────── */
.badge { border-radius: 12px; font-weight: 600; font-size: 11px; padding: 3px 8px; }
.label { border-radius: 4px; font-size: 11px; padding: 2px 7px; font-weight: 600; }

/* ── UTILITY ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.no-boder { border: 1px solid var(--border); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

p {
    font-size: 14px;
    line-height: 1.65;
    padding-top: 0;
    margin-bottom: 10px;
}

/* ── DASHBOARD STATS CARDS ───────────────────────────────── */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    border-left: 4px solid transparent;
    transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card.green { border-left-color: #2e7d32; }
.stat-card.red   { border-left-color: #c62828; }
.stat-card.blue  { border-left-color: #1565c0; }
.stat-card.orange{ border-left-color: #e65100; }

.stat-card .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-card.green .icon-box { background: #e8f5e9; color: #2e7d32; }
.stat-card.red   .icon-box { background: #fdecea; color: #c62828; }
.stat-card.blue  .icon-box { background: #e3f2fd; color: #1565c0; }
.stat-card.orange .icon-box { background: #fff8e1; color: #e65100; }

.stat-card .text-box .main-text { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.2; }
.stat-card .text-box .sub-text { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ── NOTI-BOX (legacy compat) ────────────────────────────── */
.noti-box {
    min-height: 80px;
    padding: 16px;
}
.panel-back { background-color: #fff; }

/* ── LOGIN PAGE ──────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}

.login-card .brand-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-card .brand-logo h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand-red);
    margin: 0;
}

.login-card .brand-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0 0;
    padding: 0;
}

.login-card .form-control {
    height: 42px;
    font-size: 14px;
}

.login-card .btn-login {
    width: 100%;
    height: 42px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 6px;
}
.login-card .btn-login:hover { background: var(--brand-red-dark); }

/* ── MEDIA QUERIES ───────────────────────────────────────── */
@media (min-width: 768px) {
    .navbar-side { display: block; }
    .navbar { border-radius: 0; }
}

@media (max-width: 767px) {
    :root {
        --sidebar-w: 220px;
        --sidebar-w-mini: 0px;
    }

    .navbar-cls-top .navbar-header { width: 100%; justify-content: space-between; }
    .topbar-right { padding-right: 10px; }

    #page-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 12px;
    }

    body.sidebar-open .navbar-side { width: 220px; }
    .navbar-side { width: 0; overflow: hidden; }

    .navbar-toggle { display: flex !important; }
}

/* ── MISC COMPAT ─────────────────────────────────────────── */
.bg-color-green { background-color: #2e7d32; color: #fff; }
.bg-color-blue  { background-color: #1565c0; color: #fff; }
.bg-color-red   { background-color: #c62828; color: #fff; }
.bg-color-brown { background-color: #6d4c41; color: #fff; }

.set-icon {
    border-radius: 50px;
    width: 52px;
    height: 52px;
    line-height: 52px;
    text-align: center;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── WELCOME PAGE ────────────────────────────────────────── */
.welcome-employee {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 12px;
}

.welcome-employee h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

/* ── USER IMAGE ──────────────────────────────────────────── */
.user-image {
    margin: 16px auto;
    border-radius: 10px;
    max-height: 150px;
    max-width: 150px;
}

/* ── CHAT PANEL ──────────────────────────────────────────── */
.chat-panel .panel-body { height: 400px; overflow-y: scroll; }
.chat-box { margin: 0; padding: 0; list-style: none; }
.chat-box li { margin-bottom: 12px; padding-bottom: 5px; border-bottom: 1px dotted #ddd; }
.chat-box li.left .chat-body { margin-left: 80px; }
.chat-box li .chat-body p { margin: 0; color: #8d8888; }

/* ── GLOBAL CONTENT PAGE AUTO-WRAP ──────────────────────── */
/* Wrap each page's content in a white card automatically */
#page-wrapper > div.row:first-child,
#page-wrapper > div.col-md-12:first-child {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 20px;
    margin-bottom: 16px;
}

/* Global card for the whole page content area */
#page-wrapper > .row {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 12px;
    margin: 0 0 16px 0;
}

/* ── TABLES — REMOVE FIXED WIDTH, FULL RESPONSIVE ───────── */
/* Override any inline width:800px on tables */
.table-responsive table,
.table { width: 100% !important; }

/* ── FLASH MESSAGE BOX ───────────────────────────────────── */
#messages {
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13.5px;
}

/* ── FORM SECTION PANELS ─────────────────────────────────── */
.admin_form .col-lg-8 {
    background: #fafbfd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}

/* ── INPUT GROUPS ────────────────────────────────────────── */
.input-group .btn { height: 36px; line-height: 1; }
.input-group-btn > .btn { border-radius: 0 5px 5px 0; }

/* ── IMAGE THUMBNAILS IN TABLES ──────────────────────────── */
.table img {
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ── SECTION TITLES IN PAGES ─────────────────────────────── */
.row > .col-md-12 > h2,
.row > .col-md-12 > h3,
.row > .col-md-6 > h2,
.row > .col-md-6 > h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 16px;
}

/* ── CLEARFIX SPACING ─────────────────────────────────────── */
.clearfix { clear: both; }
br + br { display: none; } /* reduce excessive BRs */

/* ── PANEL HEADING COLOR OVERRIDE ───────────────────────── */
.panel-default > .panel-heading {
    background: var(--brand-red) !important;
    color: #fff !important;
}

/* ── NOTIFICATION BANNER ─────────────────────────────────── */
.upload-image-messages {
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* ── OVERRIDE BOOTSTRAP GRID FOR BETTER SPACE USE ───────── */
/* Give the main content region full width within the data table area */
.col-md-12 { width: 100%; }

/* When sidebar is mini, all bootstrap cols get more room */
body.sidebar-mini .col-md-12 { padding-left: 8px; padding-right: 8px; }

/* ── STICKY TABLE HEADER ─────────────────────────────────── */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f8fb;
}

/* ── ANIMATE PAGE LOAD ───────────────────────────────────── */
#page-wrapper {
    animation: pageIn 0.18s ease;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── SIDEBAR TRANSITION SMOOTH ───────────────────────────── */
.navbar-side,
#page-wrapper,
.navbar-cls-top .navbar-header {
    will-change: width, margin-left;
}

/* =============================================================
   ULTRA-MODERN GLOBAL REDESIGN (TODAY'S WORLD)
   Applies instantly to all tables, forms, and cards inside the app
   ============================================================= */

/* Global Content Wrapper - Make it sleek */
#page-wrapper {
    background: #f4f6fb !important; /* Very soft modern blue-grey */
    padding: 24px;
}

/* Beautiful Cards for ALL Rows and Columns */
#page-wrapper .row {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Stunning Typography */
#page-wrapper h1, #page-wrapper h2, #page-wrapper h3, #page-wrapper h4 {
    font-weight: 700;
    color: #1e1e2d;
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f1f4;
    letter-spacing: -0.5px;
}

/* Modern Form Controls */
.form-control, input[type="text"], input[type="password"], input[type="email"], select, textarea {
    border: 1px solid #e1e3ea !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #3f4254 !important;
    background-color: #ffffff !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
    height: auto !important;
    width: 100%;
    margin-bottom: 10px;
}
.form-control:focus, input[type="text"]:focus, select:focus {
    border-color: #C90000 !important;
    box-shadow: 0 0 0 3px rgba(201, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Gorgeous Buttons */
.btn, button, input[type="submit"], input[type="button"] {
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

/* Primary / Success buttons (like Add/Submit/Edit/Update) */
.btn-primary, .btn-success, input[type="submit"], input[value="Edit"], input[value="Update"] {
    background: linear-gradient(135deg, #181c32 0%, #2a2f4c 100%) !important;
}
.btn-primary:hover, .btn-success:hover, input[type="submit"]:hover, input[value="Edit"]:hover, input[value="Update"]:hover {
    background: linear-gradient(135deg, #2a2f4c 0%, #181c32 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important;
}

/* Danger / Delete buttons */
.btn-danger, a[href*="delete"], input[value="Delete"] {
    background: linear-gradient(135deg, #C90000 0%, #ff4b4b 100%) !important;
}
.btn-danger:hover, a[href*="delete"]:hover, input[value="Delete"]:hover {
    box-shadow: 0 6px 12px rgba(201, 0, 0, 0.2) !important;
    transform: translateY(-2px);
}

/* Gorgeous File Uploader */
input[type="file"] {
    background: #f8f9fa !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border: 2px dashed #c1c8d4 !important;
    width: 100%;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #5e6278;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s ease;
}
input[type="file"]:hover {
    border-color: #181c32 !important;
    background: #f1f2f6 !important;
}

/* Premium Tables */
table, .table, .table-responsive table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-top: 16px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #ebedf2;
}
.table thead th, th {
    background: #f8f9fa !important;
    color: #5e6278 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    padding: 16px !important;
    border-bottom: 2px solid #ebedf2 !important;
    border-top: none !important;
}
.table tbody td, td {
    padding: 16px !important;
    vertical-align: middle !important;
    color: #3f4254 !important;
    font-size: 14px !important;
    border-bottom: 1px dashed #ebedf2 !important;
    border-top: none !important;
}
.table tbody tr:hover {
    background-color: #fcfcfc !important;
}

/* Table Images */
.table img, td img {
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    max-width: 80px !important;
    height: auto !important;
    border: 2px solid #fff;
}

/* Form Labels */
label {
    font-weight: 600;
    color: #1e1e2d;
    margin-bottom: 8px;
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Legacy Panel overrides */
.panel {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.panel-heading {
    display: none !important; /* Hide old ugly headers, we use our own h2 */
}
.panel-body {
    padding: 0 !important;
}
