main > .container {
    padding: 70px 15px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.not-set {
    color: var(--bs-danger);
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px var(--bs-body-color);
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px var(--bs-body-color);
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--bs-secondary-color);
}

.error-summary {
    color: var(--bs-danger-text-emphasis);
    background: var(--bs-danger-bg-subtle);
    border-left: 3px solid var(--bs-danger-border-subtle);
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align navbar brand baseline with nav links */
.navbar > .container,
.navbar > .container-fluid {
    align-items: baseline;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    color: var(--bs-navbar-color);
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-link.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar-nav .nav-link.logout:focus,
.navbar-nav .nav-link.logout:hover {
    color: var(--bs-navbar-hover-color);
}

/* footer logo: light logo by default (light bg-body-tertiary), dark logo for dark theme */
.footer-logo-dark { display: none; }

[data-bs-theme="dark"] .footer-logo-light { display: none; }
[data-bs-theme="dark"] .footer-logo-dark  { display: inline-block; }

/* login inputs: seamless icon inside input (Volt style) */
.login-split-card .input-group {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.login-split-card .input-group .input-group-text {
    background: transparent;
    border: 0;
    padding-left: 1rem;
    padding-right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-split-card .input-group .form-control {
    border: 0;
    background: transparent;
}

.login-split-card .input-group .form-control:focus {
    box-shadow: none;
}

.login-split-card .input-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

/* validation styles for login split card (browsers with :has()) */
@supports selector(.input-group:has(.is-invalid)) {
    .login-split-card .input-group:has(.is-invalid) ~ .invalid-feedback {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group:has(.is-invalid) {
        border-color: var(--bs-danger);
    }

    .login-split-card .input-group:has(.is-invalid):focus-within {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* fallback validation styles for login split card (browsers without :has()) */
@supports not selector(.input-group:has(.is-invalid)) {
    .login-split-card .invalid-feedback:not(:empty) {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group .form-control.is-invalid {
        border: var(--bs-border-width) solid var(--bs-danger);
    }

    .login-split-card .input-group .form-control.is-invalid:focus {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* login split card */
.login-split-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
    background-color: var(--bs-gray-100);
    width: 100%;
    max-width: 900px;
}

.login-split-card-wide {
    max-width: 960px;
}

.login-brand-title {
    font-size: 1.75rem;
    line-height: 1.3;
}

.login-brand-text {
    font-size: .9rem;
}

.login-brand-panel {
    background: linear-gradient(135deg, #40B3D8 0%, #3a9cbd 40%, #83C933 100%);
    position: relative;
    min-height: 480px;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(241, 138, 42, .25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(131, 201, 51, .2) 0%, transparent 40%);
    pointer-events: none;
}

.login-btn {
    background: linear-gradient(135deg, #40B3D8, #3a9cbd);
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .2s, transform .1s;
}

.login-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* dark mode login card */
[data-bs-theme="dark"] .login-split-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 4px 24px rgba(0, 0, 0, .4);
}

[data-bs-theme="dark"] .login-mobile-logo {
    filter: invert(1);
}

/* contact form textarea height */
.site-contact textarea.form-control {
    height: 140px;
}

/* captcha: blend with card background */
.site-contact img[src*="captcha"] {
    border-radius: var(--bs-border-radius);
    mix-blend-mode: multiply;
}

/* dark mode: invert captcha for visibility on dark background */
[data-bs-theme="dark"] .site-contact img[src*="captcha"] {
    mix-blend-mode: screen;
    filter: invert(1) hue-rotate(180deg);
}

/* centered page layout */
.site-login,
.site-contact,
.site-index,
.site-error,
.site-about,
.site-contact-success {
    flex: 1;
}

.site-error .site-error-content,
.site-about .site-about-content,
.site-contact-success .site-contact-success-content {
    width: 100%;
    max-width: 90%;
}

@media (min-width: 576px) {
    .site-error .site-error-content,
    .site-about .site-about-content,
    .site-contact-success .site-contact-success-content {
        max-width: 80%;
    }
}

@media (min-width: 768px) {
    .site-error .site-error-content,
    .site-about .site-about-content,
    .site-contact-success .site-contact-success-content {
        max-width: 60%;
    }
}

@media (min-width: 992px) {
    .site-error .site-error-content,
    .site-about .site-about-content,
    .site-contact-success .site-contact-success-content {
        max-width: 50%;
    }
}

/* hero banner */
.hero-banner {
    background: linear-gradient(135deg, #83C933 0%, #3a9cbd 40%, #40B3D8 100%);
    position: relative;
}

.hero-lead {
    max-width: 520px;
}

.hero-logo {
    height: 120px;
    opacity: .45;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 15% 85%, rgba(241, 138, 42, .3) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(131, 201, 51, .25) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(64, 179, 216, .15) 0%, transparent 60%);
    pointer-events: none;
}

/* extension cards */
.extension-card {
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.extension-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
}

.extension-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* dark mode: extension cards */
[data-bs-theme="dark"] .extension-card {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 2px 8px rgba(0, 0, 0, .3);
}

[data-bs-theme="dark"] .extension-card:hover {
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 8px 24px rgba(0, 0, 0, .4) !important;
}

/* ============================================================
   PREMIUM TABLE & FORM STYLES
   ============================================================ */

/* --- Card Premium --- */
.premium-card {
    background: var(--bs-body-bg);
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}
.premium-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}
.premium-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.premium-card .card-header h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    color: var(--bs-heading-color);
}
.premium-card .card-header .card-subtitle {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    margin: 0.15rem 0 0 0;
}
.premium-card .card-body {
    padding: 1.5rem;
}

/* --- Search / Filter Bar --- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}
.filter-bar .search-wrap {
    position: relative;
    flex: 1 1 220px;
    min-width: 160px;
}
.filter-bar .search-wrap .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    pointer-events: none;
}
.filter-bar .search-wrap .form-control {
    padding-left: 2.4rem;
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    font-size: 0.875rem;
    height: 40px;
}
.filter-bar .search-wrap .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}
.filter-bar .filter-select {
    min-width: 140px;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    height: 40px;
    border: 1px solid var(--bs-border-color);
}

/* --- Premium Table --- */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}
.premium-table thead th {
    background: #f8f9fa;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #495057;
    padding: 0.9rem 1rem;
    border: none;
    border-bottom: 2px solid #e9ecef;
    vertical-align: middle;
    white-space: nowrap;
}
[data-bs-theme="dark"] .premium-table thead th {
    background: #212529;
    color: #adb5bd;
    border-bottom-color: #2b3035;
}
.premium-table thead th a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.premium-table thead th a:hover { color: var(--bs-primary); }
.premium-table tbody td {
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    border: none;
    border-bottom: 1px solid var(--bs-border-color);
    vertical-align: middle;
    color: var(--bs-body-color);
    background: transparent;
    transition: background 0.15s ease;
}
.premium-table tbody tr {
    transition: background 0.15s ease;
}
.premium-table tbody tr:hover td {
    background: rgba(var(--bs-primary-rgb), 0.03);
}
.premium-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- Badge Status --- */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50rem;
    line-height: 1.2;
}
.badge-premium .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.badge-premium.bg-success { background: #d1fae5 !important; color: #065f46 !important; }
.badge-premium.bg-success .badge-dot { background: #059669; }
.badge-premium.bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.badge-premium.bg-warning .badge-dot { background: #d97706; }
.badge-premium.bg-danger { background: #fee2e2 !important; color: #991b1b !important; }
.badge-premium.bg-danger .badge-dot { background: #dc2626; }
.badge-premium.bg-info { background: #dbeafe !important; color: #1e40af !important; }
.badge-premium.bg-info .badge-dot { background: #2563eb; }
.badge-premium.bg-secondary { background: #f3f4f6 !important; color: #4b5563 !important; }
.badge-premium.bg-secondary .badge-dot { background: #9ca3af; }

[data-bs-theme="dark"] .badge-premium.bg-success { background: #064e3b !important; color: #a7f3d0 !important; }
[data-bs-theme="dark"] .badge-premium.bg-warning { background: #78350f !important; color: #fde68a !important; }
[data-bs-theme="dark"] .badge-premium.bg-danger { background: #7f1d1d !important; color: #fecaca !important; }
[data-bs-theme="dark"] .badge-premium.bg-info { background: #1e3a5f !important; color: #bfdbfe !important; }
[data-bs-theme="dark"] .badge-premium.bg-secondary { background: #1f2937 !important; color: #d1d5db !important; }

/* --- Action Buttons (Icon-only) --- */
.action-group {
    display: flex;
    gap: 0.3rem;
    justify-content: flex-end;
}
.action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--bs-secondary-color);
    transition: all 0.15s ease;
    text-decoration: none;
    font-size: 0.85rem;
}
.action-btn:hover {
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
    transform: translateY(-1px);
}
.action-btn-view:hover { background: #dbeafe; color: #1d4ed8; }
.action-btn-edit:hover { background: #d1fae5; color: #059669; }
.action-btn-delete:hover { background: #fee2e2; color: #dc2626; }

[data-bs-theme="dark"] .action-btn-view:hover { background: #1e3a5f; color: #93c5fd; }
[data-bs-theme="dark"] .action-btn-edit:hover { background: #064e3b; color: #6ee7b7; }
[data-bs-theme="dark"] .action-btn-delete:hover { background: #7f1d1d; color: #fca5a5; }

/* --- Table Summary --- */
.table-summary {
    font-size: 0.825rem;
    color: var(--bs-secondary-color);
    padding: 0.5rem 0;
}
.table-summary strong { color: var(--bs-body-color); }

/* --- Pagination Premium --- */
.pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bs-border-color);
    margin-top: 0.75rem;
}
.pagination {
    margin: 0;
}
.pagination .page-item .page-link {
    border: none;
    border-radius: 0.5rem !important;
    margin: 0 0.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    color: var(--bs-secondary-color);
    background: transparent;
    transition: all 0.15s ease;
}
.pagination .page-item .page-link:hover {
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
}
.pagination .page-item.active .page-link {
    background: var(--bs-primary);
    color: #fff;
    font-weight: 600;
}

/* --- Form Premium --- */
.premium-form .form-group {
    margin-bottom: 1.25rem;
}
.premium-form .form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--bs-heading-color);
}
.premium-form .form-control,
.premium-form .form-select {
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color);
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    background: var(--bs-body-bg);
}
.premium-form .form-control:focus,
.premium-form .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}
.premium-form .form-control::placeholder {
    color: var(--bs-secondary-color);
    opacity: 0.6;
}
.premium-form .form-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color);
    margin-top: 1.5rem;
}
.premium-form .form-actions .btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}
.premium-form .form-actions .btn-primary {
    background: var(--bs-primary);
    border: none;
}
.premium-form .form-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

/* --- Form Row Grid --- */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem 1.5rem;
}
@media (max-width: 768px) {
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}

/* --- Section Divider --- */
.section-divider {
    position: relative;
    margin: 1.5rem 0 1rem;
    padding-top: 0.5rem;
}
.section-divider h6 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-primary);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bs-border-color);
}
/* ============================================================
   MODERN DASHBOARD PREMIUM STYLES
   Inspired by Tailwind UI, Metronic, Horizon UI
   ============================================================ */

/* --- Global Background --- */
body {
    background-color: #f8f9fc !important;
}
[data-bs-theme="dark"] body {
    background-color: #0f172a !important;
}

/* --- Premium Card --- */
.card-premium {
    background: #fff;
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: box-shadow 0.2s ease;
}
.card-premium:hover {
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08), 0 1px 4px rgba(16, 24, 40, 0.04);
}
[data-bs-theme="dark"] .card-premium {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] .card-premium:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.card-premium .card-hdr {
    padding: 1.5rem 1.75rem 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.card-premium .card-hdr h4 {
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0;
    color: #111827;
    letter-spacing: -0.01em;
}
[data-bs-theme="dark"] .card-premium .card-hdr h4 { color: #f1f5f9; }
.card-premium .card-hdr .card-subtitle {
    font-size: 0.825rem;
    color: #6b7280;
    margin: 0.15rem 0 0 0;
    font-weight: 400;
}
[data-bs-theme="dark"] .card-premium .card-hdr .card-subtitle { color: #94a3b8; }

.card-premium .card-body {
    padding: 1.5rem 1.75rem;
}

/* --- Premium Button --- */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: none;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    text-decoration: none;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    color: #fff;
}
.btn-premium:active {
    transform: translateY(0);
}
.btn-premium svg { width: 18px; height: 18px; stroke-width: 2.5; flex-shrink: 0; }

/* --- Search / Filter Bar --- */
.filter-bar-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.filter-bar-modern .search-group {
    position: relative;
    flex: 1 1 260px;
    min-width: 180px;
}
.filter-bar-modern .search-group svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.filter-bar-modern .search-group input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background: #fff;
    color: #111827;
    transition: all 0.2s ease;
    outline: none;
}
.filter-bar-modern .search-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.filter-bar-modern .search-group input::placeholder { color: #9ca3af; }
[data-bs-theme="dark"] .filter-bar-modern .search-group input {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .filter-bar-modern .search-group input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.filter-bar-modern .btn-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    color: #6b7280;
    transition: all 0.15s ease;
    cursor: pointer;
}
.filter-bar-modern .btn-icon:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}
[data-bs-theme="dark"] .filter-bar-modern .btn-icon {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
[data-bs-theme="dark"] .filter-bar-modern .btn-icon:hover { background: #334155; color: #e2e8f0; }

/* --- Premium Table (Borderless) --- */
.table-premium {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}
.table-premium thead th {
    padding: 0.85rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    background: transparent;
    white-space: nowrap;
    vertical-align: middle;
}
[data-bs-theme="dark"] .table-premium thead th {
    color: #94a3b8;
    border-bottom-color: #1e293b;
}
.table-premium tbody td {
    padding: 1rem;
    font-size: 0.875rem;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
    background: transparent;
}
[data-bs-theme="dark"] .table-premium tbody td {
    color: #e2e8f0;
    border-bottom-color: #1e293b;
}
.table-premium tbody tr {
    transition: background 0.15s ease;
}
.table-premium tbody tr:hover td {
    background: #f9fafb;
}
[data-bs-theme="dark"] .table-premium tbody tr:hover td {
    background: #0f172a;
}
.table-premium tbody tr:last-child td {
    border-bottom: none;
}

/* --- Premium Badge --- */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1.3;
}
.badge-modern .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.badge-modern-success { background: #ecfdf5; color: #065f46; }
.badge-modern-success .dot { background: #10b981; }
.badge-modern-warning { background: #fffbeb; color: #92400e; }
.badge-modern-warning .dot { background: #f59e0b; }
.badge-modern-danger { background: #fef2f2; color: #991b1b; }
.badge-modern-danger .dot { background: #ef4444; }
.badge-modern-info { background: #eff6ff; color: #1e40af; }
.badge-modern-info .dot { background: #3b82f6; }
.badge-modern-secondary { background: #f3f4f6; color: #4b5563; }
.badge-modern-secondary .dot { background: #9ca3af; }

[data-bs-theme="dark"] .badge-modern-success { background: #064e3b; color: #a7f3d0; }
[data-bs-theme="dark"] .badge-modern-warning { background: #78350f; color: #fde68a; }
[data-bs-theme="dark"] .badge-modern-danger { background: #7f1d1d; color: #fecaca; }
[data-bs-theme="dark"] .badge-modern-info { background: #1e3a5f; color: #bfdbfe; }
[data-bs-theme="dark"] .badge-modern-secondary { background: #1f2937; color: #d1d5db; }

/* --- Action Buttons (Ghost Circle) --- */
.action-group-modern {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}
.action-btn-modern {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #9ca3af;
    transition: all 0.15s ease;
    text-decoration: none;
    font-size: 0.85rem;
}
.action-btn-modern:hover { background: #f3f4f6; transform: scale(1.05); }
.action-btn-modern-view:hover { background: #eff6ff; color: #3b82f6; }
.action-btn-modern-edit:hover { background: #ecfdf5; color: #10b981; }
.action-btn-modern-delete:hover { background: #fef2f2; color: #ef4444; }
[data-bs-theme="dark"] .action-btn-modern:hover { background: #1e293b; }
[data-bs-theme="dark"] .action-btn-modern-view:hover { background: #1e3a5f; color: #93c5fd; }
[data-bs-theme="dark"] .action-btn-modern-edit:hover { background: #064e3b; color: #6ee7b7; }
[data-bs-theme="dark"] .action-btn-modern-delete:hover { background: #7f1d1d; color: #fca5a5; }

/* --- Pagination Modern --- */
.pagination-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}
[data-bs-theme="dark"] .pagination-modern { border-top-color: #1e293b; }
.pagination-modern .info-text {
    font-size: 0.825rem;
    color: #6b7280;
}
.pagination-modern .info-text strong { color: #111827; font-weight: 600; }
[data-bs-theme="dark"] .pagination-modern .info-text strong { color: #f1f5f9; }
.pagination-modern .pages {
    display: flex;
    gap: 0.25rem;
}
.pagination-modern .pages a, .pagination-modern .pages span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
}
.pagination-modern .pages a:hover { background: #f3f4f6; color: #374151; }
.pagination-modern .pages .active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}
[data-bs-theme="dark"] .pagination-modern .pages a { color: #94a3b8; }
[data-bs-theme="dark"] .pagination-modern .pages a:hover { background: #1e293b; color: #e2e8f0; }

/* --- Premium Form --- */
.form-premium .form-group { margin-bottom: 1.25rem; }
.form-premium label {
    font-weight: 600;
    font-size: 0.825rem;
    margin-bottom: 0.4rem;
    color: #374151;
    display: block;
}
[data-bs-theme="dark"] .form-premium label { color: #e2e8f0; }
.form-premium .form-control, .form-premium .form-select {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    color: #111827;
    transition: all 0.2s ease;
    outline: none;
}
.form-premium .form-control:focus, .form-premium .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.form-premium .form-control::placeholder { color: #9ca3af; }
[data-bs-theme="dark"] .form-premium .form-control, [data-bs-theme="dark"] .form-premium .form-select {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
[data-bs-theme="dark"] .form-premium .form-control:focus, [data-bs-theme="dark"] .form-premium .form-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-premium .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}
@media (max-width: 768px) { .form-premium .form-row-2 { grid-template-columns: 1fr; } }

.form-premium .section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}
[data-bs-theme="dark"] .form-premium .section-title { border-bottom-color: #1e293b; }

.form-premium .form-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 1.5rem;
}
[data-bs-theme="dark"] .form-premium .form-actions { border-top-color: #1e293b; }
.form-premium .form-actions .btn {
    border-radius: 0.75rem;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
}
.form-premium .form-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}
.form-premium .form-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.form-premium .form-actions .btn-outline-secondary {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
}
.form-premium .form-actions .btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
[data-bs-theme="dark"] .form-premium .form-actions .btn-outline-secondary {
    background: transparent;
    border-color: #334155;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .form-premium .form-actions .btn-outline-secondary:hover {
    background: #1e293b;
}

/* --- Table Summary --- */
.table-summary-modern {
    font-size: 0.825rem;
    color: #6b7280;
    padding: 0.5rem 0;
}
.table-summary-modern strong { color: #111827; font-weight: 600; }
[data-bs-theme="dark"] .table-summary-modern strong { color: #f1f5f9; }

/* --- DataTables Override --- */
.dataTables_wrapper .dataTables_filter { display: none !important; }
.dataTables_wrapper .dataTables_length { display: none !important; }
.dataTables_wrapper .dataTables_info {
    font-size: 0.825rem;
    color: #6b7280;
    padding: 0.5rem 0;
}
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    gap: 0.25rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    min-width: 34px; height: 34px;
    padding: 0 0.5rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4 !important;
    cursor: default !important;
}
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button { color: #94a3b8 !important; }
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: #1e293b !important; color: #e2e8f0 !important; }

/* ============================================================
   MODERN PREMIUM BREADCRUMBS & BUTTONS
   ============================================================ */

/* --- Modern Premium Breadcrumb --- */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    margin-bottom: 1.5rem;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px; /* Pill style */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.825rem;
    font-weight: 500;
}

[data-bs-theme="dark"] .breadcrumb {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6b7280;
}

[data-bs-theme="dark"] .breadcrumb-item {
    color: #94a3b8;
}

.breadcrumb-item a {
    color: #4f46e5;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: #818cf8;
}

.breadcrumb-item a:hover {
    color: #312e81;
    transform: translateY(-0.5px);
}

[data-bs-theme="dark"] .breadcrumb-item a:hover {
    color: #c7d2fe;
}

/* separator: replace standard bootstrap slash with a sleek mini chevron */
.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    padding: 0 0.6rem;
    color: #9ca3af;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: bold;
}

[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #475569;
}

.breadcrumb-item.active {
    color: #374151;
    font-weight: 600;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #f1f5f9;
}

/* --- Premium Buttons Style --- */
.btn {
    border-radius: 0.65rem !important;
    font-weight: 600 !important;
    font-size: 0.825rem !important;
    padding: 0.55rem 1.35rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

.btn:hover {
    transform: translateY(-1.5px) !important;
}

.btn:active {
    transform: translateY(0) !important;
}

/* Primary Button (Indigo / Royal Blue) */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #3b82f6) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #2563eb) !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4) !important;
}

/* Success Button (Emerald / Mint Green) */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}
.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

/* Danger Button (Rose / Crimson Red) */
.btn-danger {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25) !important;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4) !important;
}

/* Info Button (Teal / Cyan Blue) */
.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25) !important;
}
.btn-info:hover {
    background: linear-gradient(135deg, #0891b2, #0369a1) !important;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4) !important;
}

/* Outline Secondary Button */
.btn-outline-secondary {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    box-shadow: none !important;
}
.btn-outline-secondary:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
}

/* Dark mode overrides for buttons */
[data-bs-theme="dark"] .btn-outline-secondary {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background: #334155 !important;
    border-color: #64748b !important;
    color: #f8fafc !important;
}

/* Button spacing & layout fixes */
.card-header > div:last-child {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Fallback margin spacing for inline buttons */
.btn + .btn, .btn + a.btn, a.btn + .btn, a.btn + a.btn {
    margin-left: 0.5rem;
}

/* Spacing between action buttons in tables (GridView) */
.action-btn + .action-btn {
    margin-left: 0.4rem;
}