:root {
    /* Binance-inspired Color Palette */
    --bg-color: #0b0e11;
    --surface-color: #181a20;
    --primary-color: #f3ba2f;
    --primary-hover: #e2ab28;
    --text-primary: #eaecef;
    --text-secondary: #848e9c;
    --border-color: #2b2f36;
    --input-bg: #2b2f36;
    --success-color: #0ecb81;
    --danger-color: #f6465d;
    --glass-bg: rgba(24, 26, 32, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(243, 186, 47, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(243, 186, 47, 0.05) 0%, transparent 40%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo i {
    font-size: 40px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(243, 186, 47, 0.3));
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.form-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(243, 186, 47, 0.1);
}

.form-input::placeholder {
    color: #474d57;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 186, 47, 0.2);
}

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

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Custom Select2 Overrides */
.select2-container--default .select2-selection--single {
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 12px;
    height: 46px;
    padding: 8px 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.select2-dropdown {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
    color: #000 !important;
}

/* SweetAlert2 inspired via global CSS just in case */
.swal2-popup {
    background: var(--surface-color) !important;
    color: var(--text-primary) !important;
    border-radius: 20px !important;
}

/* Pagination Styling (Bootstrap Structure) */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 14px;
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 700;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-color);
}

.page-item:not(.active):not(.disabled) .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(243, 186, 47, 0.05);
}

.page-link svg {
    width: 14px;
    height: 14px;
}

/* Dashboard Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-color);
}

.sidebar {
    width: 260px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.sidebar-header span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    gap: 12px;
    font-size: 15px;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
}

.menu-item:hover,
.menu-item.active {
    color: var(--primary-color);
    background: rgba(243, 186, 47, 0.05);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.top-nav {
    height: 70px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.content-body {
    padding: 40px;
    flex: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(243, 186, 47, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.logout-btn:hover {
    background: var(--danger-color);
    color: #fff;
}