:root {
    --luxury-purple: #1a1a1a;
    --luxury-purple-rgb: 26, 26, 26;
    --luxury-gold: #b29441;
    --luxury-gold-rgb: 178, 148, 65;
    --luxury-gold-light: #d3b87d;
    --luxury-bg: #f8f9ff;
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-purple: rgba(var(--luxury-purple-rgb), 0.85);

    --sidebar-width: 260px;
    --header-height: 72px;
    --primary-bg: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    --secondary-bg: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    --accent-color: var(--luxury-gold);
    --accent-hover: #c3a758;
    --accent-hover-rgb: 195, 167, 88;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.08);
    --shadow-sm: 0 2px 6px rgba(2, 6, 23, 0.08);
    --shadow-md: 0 8px 24px rgba(2, 6, 23, 0.12);
    --shadow-lg: 0 20px 50px rgba(2, 6, 23, 0.16);
    --transition-speed: 0.28s;
    --border-radius: 14px;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --golden-color: var(--luxury-gold);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--luxury-bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Blobs */
.elegant-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--luxury-purple);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--luxury-gold);
    bottom: -50px;
    left: -100px;
    animation-duration: 25s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--luxury-purple);
    top: 40%;
    left: 20%;
    opacity: 0.1;
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.fw-black {
    font-weight: 800;
}

.tracking-tight {
    letter-spacing: -0.05em;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.gold-text {
    color: var(--luxury-gold);
}

/* Hero Styling */
.premium-hero-container {
    background: var(--premium-grad);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: 2rem !important;
    position: relative;
}

.hero-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.1;
    mix-blend-mode: soft-light;
}

.stat-luxury-badge {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.stat-luxury-badge .label {
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 1);
    letter-spacing: 0.1em;
}

.stat-luxury-badge .value {
    font-size: 1.25rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 1);
    line-height: 1;
}

.luxury-icon-box {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 0;
    margin-bottom: -2rem;
}

/* Filter Card */
.luxury-filter-card {
    background: var(--glass-white);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 1.5rem !important;
}

.luxury-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--luxury-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

.luxury-select {
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid var(--luxury-purple) !important;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--luxury-purple);
    transition: all 0.3s;
}

.luxury-select:focus {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--luxury-gold-rgb), 0.1);
}

.luxury-select.is-invalid,
.luxury-select.border-danger,
.is-invalid.luxury-select,
.was-validated .luxury-select:invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2) !important;
}

.no-spin-arrows::-webkit-outer-spin-button,
.no-spin-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.no-spin-arrows {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Luxury Table */
.luxury-table-container {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.luxury-table thead th {
    background-color: #fcfcfd;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0.4rem;
    color: var(--luxury-purple) !important;
}

.logs-table-black thead th,
.logs-table-black tbody td,
.logs-table-black tbody td .badge {
    color: #111 !important;
}

.luxury-sort-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.luxury-sort-link:hover {
    color: var(--luxury-gold);
}

.luxury-row {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.luxury-row:hover {
    background: rgba(var(--luxury-purple-rgb), 0.04) !important;
    box-shadow: inset 4px 0 0 0 var(--luxury-gold);
}

.luxury-avatar {
    min-width: 42px;
    min-height: 42px;
    background: linear-gradient(135deg, #eee 0%, #fff 100%);
    border: 2px solid #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--luxury-purple);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.luxury-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.luxury-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;
}

.text-indigo {
    color: var(--luxury-purple) !important;
}

.luxury-badge-outline {
    border: 1.5px solid rgba(var(--luxury-purple-rgb), 0.1);
    background: transparent;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--luxury-purple);
    display: inline-block;
}

.luxury-verdict {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.verdict-selected {
    background-color: rgba(16, 185, 129, 0.06);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.verdict-rejected {
    background-color: rgba(239, 68, 68, 0.06);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.luxury-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Buttons Update */
.btn-extreme-gold {
    background: var(--luxury-gold);
    border: none;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(var(--luxury-gold-rgb), 0.15);
    height: fit-content;
    width: auto;
    font-size: 0.75rem !important;
}

.btn-extreme-gold:hover {
    background: var(--premium-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(var(--luxury-gold-rgb), 0.25);
    color: #fff;
}

.btn-extreme-purple {
    background: var(--luxury-purple);
    border: none;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
    width: auto;
    height: fit-content;
    box-shadow: 0 10px 20px rgba(var(--luxury-purple-rgb), 0.15);
}

.btn-extreme-purple:hover {
    background: var(--premium-purple);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(var(--luxury-purple-rgb), 0.25);
    color: #fff;
}

.btn-extreme-reset {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--luxury-purple) !important;
    color: var(--luxury-purple);
    padding: 0.75rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s;
    height: fit-content;
    font-size: 0.75rem !important;
}

.btn-extreme-reset:hover {
    background: #fff;
    border-color: var(--luxury-purple);
    color: var(--luxury-purple);
}

/* Pagination Styling */
.luxury-pagination .page-item .page-link {
    border: none;
    background: transparent;
    color: var(--luxury-purple);
    font-weight: 700;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin: 0 4px;
    transition: all 0.3s;
}

.luxury-pagination .page-item.active .page-link {
    background: var(--luxury-purple);
    color: #fff;
    box-shadow: 0 10px 20px rgba(var(--luxury-purple-rgb), 0.15);
}

.luxury-pagination .page-item:hover .page-link:not(.active) {
    background: rgba(var(--luxury-purple-rgb), 0.05);
}

.luxury-empty {
    position: relative;
    z-index: 1;
}

.empty-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--luxury-gold-rgb), 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn-luxury-reset {
    background: transparent;
    border: 2px solid var(--luxury-gold);
    color: var(--luxury-gold);
    font-weight: 800;
    border-radius: 100px;
    padding: 0.75rem 2rem;
    transition: all 0.3s;
}

.btn-luxury-reset:hover {
    background: var(--luxury-gold);
    color: #fff;
}

.shadow-2xl {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
}

/* Original Layout Styles */

.coupon-form-page {
    padding: 20px 0;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--primary-bg);
    color: var(--text-color);
    z-index: 1050;
    transition: left var(--transition-speed) ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* Enhanced scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

a.sidebar-brand img {
    width: 200px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 3px;
    transition: background var(--transition-speed);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(15, 23, 42, 0.3);
}

.sidebar-logo {
    padding: 1.5rem;
    background: var(--secondary-bg);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.sidebar-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.sidebar-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(1.1);
}

.sidebar-header {
    padding: 1.25rem 1.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    background: transparent;
    position: relative;
}

.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-item {
    position: relative;
    margin: 0.25rem 0.75rem;
}

.coupon-admin-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 30px 10px !important;
}

.nav-link {
    color: var(--text-color);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--luxury-gold-rgb), 0.1), transparent);
    transition: left var(--transition-speed);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link i {
    margin-right: 0.875rem;
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link.active,
.nav-link:hover,
.nav-link.active-parent {
    background: linear-gradient(135deg, rgba(var(--luxury-gold-rgb), 0.15), rgba(var(--accent-hover-rgb), 0.1));
    color: var(--golden-color);
    border-color: rgba(var(--luxury-gold-rgb), 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 0.875rem;
    transition: all var(--transition-speed);
}

.nav-link[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.collapse {
    background: transparent;
    transition: height var(--transition-speed);
    margin-top: 0.25rem;
}

.dropdown-item {
    color: #ffffff;
    padding: 0.75rem 1.25rem 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    display: block;
    text-decoration: none;
    border: none;
    background: none;
    border-radius: 8px;
    margin: 0.125rem 0;
    transition: all var(--transition-speed);
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.dropdown-item:hover,
.dropdown-item.active {
    color: var(--golden-color);
    background: rgba(var(--luxury-gold-rgb), 0.08);
    transform: translateX(8px);
}

.dropdown-item:hover::before,
.dropdown-item.active::before {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.5);
}

.main {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    transition: margin-left var(--transition-speed);
}

.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: left var(--transition-speed);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-title {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    color: #1e293b;
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.header-title .bi-arrow-right-short {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0 0.5rem;
}

.header-title .text-gold {
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(var(--luxury-gold-rgb), 0.2);
}

.header-profile {
    font-size: 0.925rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-speed);
}

.header-profile:hover {
    background: rgba(248, 250, 252, 1);
    box-shadow: var(--shadow-sm);
}

.header-profile .fw-bold {
    color: var(--accent-color);
    font-weight: 600;
}

.header-profile a {
    color: #64748b;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    padding: 0.25rem;
    border-radius: 6px;
}

.header-profile a:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
}

/* Hamburger enhanced styles */
.nav-control {
    position: relative;
    z-index: 2000;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.nav-control:hover {
    background: rgba(var(--luxury-gold-rgb), 0.1);
}

.hamburger {
    width: 28px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.hamburger .line {
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 2px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(var(--luxury-gold-rgb), 0.3);
}

/* Hamburger stays as hamburger even when active */
.nav-control.active .line:nth-child(1) {
    transform: none;
}

.nav-control.active .line:nth-child(2) {
    opacity: 1;
    transform: none;
}

.nav-control.active .line:nth-child(3) {
    transform: none;
}

/* Mobile overlay enhanced */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.5));
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.sidebar-overlay.active {
    opacity: 1;
}

.sidebar.collapsed {
    left: calc(-1 * var(--sidebar-width));
}

.main.collapsed {
    margin-left: 0;
}

.header.collapsed {
    left: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced submenu animations */
.submenu {
    padding-left: 0;
}

.submenu .dropdown-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.4s forwards;
}

.submenu.show .dropdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

.submenu.show .dropdown-item:nth-child(2) {
    animation-delay: 0.2s;
}

.submenu.show .dropdown-item:nth-child(3) {
    animation-delay: 0.3s;
}

@media (max-width: 991.98px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
        z-index: 1050;
    }

    .sidebar.show {
        left: 0;
    }

    .header {
        left: 0;
    }

    .main {
        margin-left: 0;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 575.98px) {
    :root {
        --sidebar-width: 260px;
        --header-height: 60px;
    }

    .header {
        padding: 0 1rem;
    }

    .sidebar-logo {
        padding: 1rem;
    }

    .sidebar-logo img {
        max-height: 40px;
    }

    .main {
        padding: 0.2rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .dropdown-item {
        padding: 0.625rem 1rem 0.625rem 2.75rem;
        font-size: 0.8rem;
    }

    .header-title {
        font-size: 1rem;
    }

    .header-profile {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Enhanced table styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    border-color: rgba(226, 232, 240, 0.8);
    overflow-wrap: break-word;
    word-break: normal;
}

.table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

table tr td {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: inherit !important;
}

/* Session alerts enhanced */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.8));
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.8));
    color: white;
}

/* Custom focus styles */
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Improved hover effects */
.sidebar-item:hover {
    transform: translateY(-1px);
}

/* --- GLOBAL PREMIUM THEME UTILITIES --- */
:root {
    --premium-purple: #1a1a1a;
    --premium-purple-rgb: 26, 26, 26;
    --premium-gold: #b29441;
    --premium-gold-rgb: 178, 148, 65;
    --premium-gold-dark: #8c7533;
    --premium-purple-light: #f1f5f9;
    --premium-grad: linear-gradient(135deg, #2d2d2d 0%, #111111 100%);
    --premium-grad-gold: linear-gradient(135deg, var(--premium-gold) 0%, var(--accent-hover) 100%);
}

.btn-premium-purple {
    background: var(--premium-grad);
    color: white !important;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(var(--premium-purple-rgb), 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-premium-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--premium-purple-rgb), 0.3);
    filter: brightness(1.1);
}

.btn-premium-gold {
    background: var(--premium-grad-gold);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(var(--premium-gold-rgb), 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-premium-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--premium-gold-rgb), 0.3);
    background: var(--accent-hover);
}

.btn-premium-outline {
    background: transparent;
    color: var(--premium-purple) !important;
    border: 2px solid var(--premium-purple);
    border-radius: 12px;
    padding: 8px 22px;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-premium-outline:hover {
    background: var(--premium-purple);
    color: white !important;
}

.card-premium {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.card-premium:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.card-header-premium {
    background: var(--premium-grad);
    padding: 20px 25px;
    border: none;
}

.card-header-premium h1,
.card-header-premium h2,
.card-header-premium h3,
.card-header-premium h4,
.card-header-premium h5 {
    color: white;
    margin: 0;
    font-weight: 700;
}

.table-premium thead th,
.table-premium thead th a {
    background: var(--premium-purple-light);
    color: var(--premium-purple);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 15px 10px;
    border-bottom: 2px solid #eef2ff;
}

.table-premium tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    color: #475569;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.table-premium tbody tr:hover {
    background-color: #f8fafc;
}

.badge {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.badge-premium {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Layout adjustment */
.main {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* --- HIGHLY ELEGANT & RESPONSIVE PAGINATION STYLES --- */
.pagination,
.luxury-pagination nav,
nav[role="navigation"],
.pagination-container nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination .page-item,
.luxury-pagination .page-item,
.pagination-container .page-item {
    margin: 0;
}

.pagination .page-link,
.luxury-pagination nav a,
.luxury-pagination nav span,
.pagination-container nav a,
.pagination-container nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--premium-purple);
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

/* Active / Current page state */
.pagination .page-item.active .page-link,
.luxury-pagination nav span.active,
.luxury-pagination nav span[aria-current="page"],
.pagination-container nav span.active,
.pagination-container nav span[aria-current="page"] {
    color: var(--premium-purple) !important;
    pointer-events: none;
}

/* Disabled state */
.pagination .page-item.disabled .page-link,
.luxury-pagination nav span.disabled,
.pagination-container nav span.disabled {
    color: #cbd5e1 !important;
    pointer-events: none;
    box-shadow: none;
}

/* Tailwind layout fallback for links inside nav */
nav[role="navigation"] svg {
    width: 18px;
    height: 18px;
}

/* Mobile wrapper - hide on desktop */
nav[role="navigation"]>div:first-child {
    display: none !important;
}

/* Desktop wrapper - force display as flex and clean alignment */
nav[role="navigation"]>div:last-child {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto;
}

/* Hide the duplicate "Showing X to Y of Z results" text block entirely */
nav[role="navigation"] p,
nav[role="navigation"]>div:last-child>div:first-child {
    display: none !important;
}

/* Responsive Layout adjustment for count and pagination container */
@media (max-width: 767.98px) {
    .d-flex.justify-content-between.align-items-center.flex-wrap {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .pagination,
    .luxury-pagination nav,
    nav[role="navigation"],
    .pagination-container nav {
        justify-content: center !important;
        width: 100% !important;
    }

    .luxury-subtitle {
        width: 100% !important;
        text-align: center !important;
    }

    nav[role="navigation"]>div:first-child {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    nav[role="navigation"]>div:last-child {
        display: none !important;
    }
}

/* ==========================================================================
   Admin Auth Pages (Login & Register) Styles
   ========================================================================== */
body.auth-body {
    background: #000000 url('../img/banner/banner-bg.webp') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    min-height: 100vh;
    color: #ffffff;
}

.login-wrapper,
.register-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 1;
    position: relative;
}

.login-card,
.register-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(105, 91, 56, 0.92) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 35px 30px;
    border-radius: 20px;
    border: 1px solid rgba(178, 148, 65, 0.45);
    /* Glowing gold border */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65),
        0 0 25px rgba(178, 148, 65, 0.12),
        inset 0 0 20px rgba(146, 122, 65, 0.15);
    /* Gold-black glass inner glow */
    width: 100%;
}

.login-card {
    max-width: 420px;
}

.register-card {
    max-width: 450px;
}

/* Logo row styles */
.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(178, 148, 65, 0.15);
}

.logo-row img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-row img:last-child {
    max-height: 55px;
}

.login-card h2,
.register-card h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-body .form-label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.auth-body .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.auth-body .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(178, 148, 65, 0.7);
    /* Glowing gold on focus */
    box-shadow: 0 0 12px rgba(178, 148, 65, 0.25);
    outline: 0;
}

.auth-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-body .alert {
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.auth-body .alert-success {
    background-color: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.3);
    color: #a3cfbb;
}

.auth-body .alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #f8b4b9;
}

.auth-body .alert-info {
    background-color: rgba(13, 202, 240, 0.2);
    border-color: rgba(13, 202, 240, 0.3);
    color: #a6e5f2;
}

.auth-body a {
    color: #b29441;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-body a:hover {
    color: #c3a758;
    text-shadow: 0 0 8px rgba(178, 148, 65, 0.4);
}

/* Gold Submit Buttons */
.auth-body button[type="submit"],
.auth-body .btn-warning,
.auth-body .btn-danger {
    background: var(--premium-grad-gold) !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(var(--premium-gold-rgb), 0.3);
}

.auth-body button[type="submit"]:hover,
.auth-body .btn-warning:hover,
.auth-body .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--premium-gold-rgb), 0.5);
    background: linear-gradient(135deg, #c3a758 0%, #b29441 100%) !important;
}

.auth-body button[type="submit"]:active,
.auth-body .btn-warning:active,
.auth-body .btn-danger:active {
    transform: translateY(1px);
}

/* Secondary Button styling (Verify button) */
.auth-body .btn-primary {
    background: rgba(178, 148, 65, 0.1) !important;
    color: #b29441 !important;
    border: 1px solid rgba(178, 148, 65, 0.3) !important;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-body .btn-primary:hover {
    background: #b29441 !important;
    color: #000000 !important;
    border-color: #b29441 !important;
    box-shadow: 0 0 15px rgba(178, 148, 65, 0.4);
}

.auth-body .btn-outline-secondary {
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: transparent !important;
}

.auth-body .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Spinner adjustment for dark bg */
.auth-body .spinner-border {
    color: currentColor;
}

/* Responsive tweaks */
@media (max-width: 767px) {

    .login-card,
    .register-card {
        padding: 25px 20px;
    }

    .logo-row {
        gap: 15px;
        margin-bottom: 20px;
    }

    .logo-row img {
        max-height: 35px;
    }
}

/* Unique styles migrated from Nomination Registry */
.text-purple-deep {
    color: var(--luxury-purple) !important;
}

.entry-id-tag {
    background: rgba(var(--luxury-purple-rgb), 0.08);
    color: var(--luxury-purple);
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid rgba(var(--luxury-purple-rgb), 0.05);
}

.fs-tiny {
    font-size: 0.65rem;
}

.btn-action {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(var(--luxury-purple-rgb), 0.08);
    color: var(--luxury-purple);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action:hover {
    background: var(--luxury-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--luxury-purple-rgb), 0.2);
}

.luxury-empty-glow {
    position: relative;
    display: inline-block;
}

.luxury-empty-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(var(--luxury-gold-rgb), 0.15) 0%, transparent 70%);
    opacity: 0.15;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ==========================================================================
   Admin Responsive Overrides (<= 991px & <= 768px)
   ========================================================================== */
@media (max-width: 991.98px) {
    .header-title {
        font-size: 1rem;
    }

    .stat-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    }

    .table-responsive {
        border-radius: var(--border-radius);
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .admin-filter-bar,
    .card-header .d-flex {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .header-profile .fw-bold {
        font-size: 0.8rem !important;
    }

    .btn-action {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .table td,
    .table th {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}

\n