:root {
    --bs-primary: #0d1f3c;
    --bs-primary-rgb: 13, 31, 60;
    --premium-gold: #c9a84c;
    --premium-gold-rgb: 201, 168, 76;
    --premium-dark: #0a1628;
    --premium-navy: #0d1f3c;
    --premium-blue: #1a3a6b;
    --premium-light: #f0f4ff;
}

* {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f5f7fc;
    min-height: 100vh;
}

/* ===== ELEGANT BG PATTERN ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(13, 31, 60, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 58, 107, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 168, 76, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== PREMIUM NAVBAR ===== */
.bg-dark-blue {
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #122a52 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 20px rgba(10, 22, 40, 0.3);
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: #fff;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    vertical-align: middle;
}



.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.85;
    transition: all 0.3s;
}

.navbar .nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    margin: 0 0.1rem;
}

.navbar .nav-link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar .nav-link.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.15);
}

/* ===== ELEGANT CARDS ===== */
.card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card-body.p-0 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.1) !important;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    background: transparent;
}

/* ===== GRADIENT CARDS ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 30%, #1a3a6b 70%, #2a5298 100%) !important;
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== PREMIUM BUTTONS ===== */
.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.55rem 1.4rem;
    border-radius: 0.35rem;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.85rem;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #0d1f3c !important;
    box-shadow: 0 4px 18px rgba(13, 31, 60, 0.25);
}

.btn-primary:hover {
    background-color: #162d52 !important;
    box-shadow: 0 8px 28px rgba(13, 31, 60, 0.35);
}

.btn-success {
    background-color: #1a7a3a !important;
    box-shadow: 0 4px 18px rgba(26, 122, 58, 0.25);
}

.btn-success:hover {
    background-color: #219a4a !important;
    box-shadow: 0 8px 28px rgba(26, 122, 58, 0.35);
}

.btn-danger {
    background-color: #b31d2b !important;
    box-shadow: 0 4px 18px rgba(179, 29, 43, 0.25);
}

.btn-danger:hover {
    background-color: #d92534 !important;
    box-shadow: 0 8px 28px rgba(179, 29, 43, 0.35);
}

.btn-warning {
    background-color: #b8860b !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(184, 134, 11, 0.25);
}

.btn-warning:hover {
    background-color: #d49c10 !important;
    color: #fff !important;
    box-shadow: 0 8px 28px rgba(184, 134, 11, 0.35);
}

.btn-outline-primary {
    border: 2px solid #0d1f3c !important;
    color: #0d1f3c !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #0d1f3c !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(13, 31, 60, 0.25);
}

.btn-outline-secondary {
    border: 2px solid #d0d0d0 !important;
    color: #666 !important;
    background: transparent !important;
}

.btn-outline-success {
    border: 2px solid #6bbf59 !important;
    color: #6bbf59 !important;
    background: transparent !important;
}

.btn-outline-success:hover {
    background-color: transparent !important;
    color: #1a7a3a !important;
    border-color: #1a7a3a !important;
    transform: translateY(-2px);
}

.btn-outline-secondary:hover {
    border-color: #999 !important;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    transform: translateY(-2px);
}

.btn-action-xs {
    padding: 0.25rem 0.45rem !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    border-radius: 0.25rem !important;
    vertical-align: middle !important;
}

.btn-action-xs.btn-approve,
.btn-action-xs.btn-reject,
.btn-action-xs.btn-warning {
    color: #fff !important;
}

.btn-action-xs.btn-approve i,
.btn-action-xs.btn-reject i,
.btn-action-xs.btn-warning i {
    color: #fff;
}

.btn-action-xs.btn-outline-success i,
.btn-action-xs.btn-outline-success i::before {
    color: #6bbf59 !important;
}

.btn-action-xs.btn-outline-success:hover i,
.btn-action-xs.btn-outline-success:hover i::before {
    color: #1a7a3a !important;
}

.btn-approve {
    background-color: #0d6e5f !important;
    box-shadow: 0 2px 10px rgba(13, 110, 95, 0.25);
}

.btn-approve:hover {
    background-color: #108b78 !important;
    box-shadow: 0 4px 16px rgba(13, 110, 95, 0.35);
}

.btn-reject {
    background-color: #7a1a2a !important;
    box-shadow: 0 2px 10px rgba(122, 26, 42, 0.25);
}

.btn-reject:hover {
    background-color: #9c2236 !important;
    box-shadow: 0 4px 16px rgba(122, 26, 42, 0.35);
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* ===== ELEGANT TABLES ===== */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a8fa3;
    white-space: nowrap;
    border-bottom: 2px solid #eef0f4 !important;
    padding: 0.9rem 0.75rem !important;
    background: #fafbfd;
}

.table td {
    font-size: 0.85rem;
    vertical-align: middle;
    padding: 0.85rem 0.75rem !important;
    border-bottom: 1px solid #f0f2f6;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 31, 60, 0.02);
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    padding: 0.4em 1em;
    letter-spacing: 0.3px;
    font-size: 0.75rem;
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: 0.6rem;
    border: 2px solid #e8ecf0;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    transition: all 0.3s;
    background: #fafbfc;
}

.form-control:focus, .form-select:focus {
    border-color: #1a3a6b;
    box-shadow: 0 0 0 0.25rem rgba(26, 58, 107, 0.1);
    background: #fff;
}

.form-control:hover, .form-select:hover {
    border-color: #c0c8d0;
}

.input-group-text {
    border-radius: 0.6rem 0 0 0.6rem;
    border: 2px solid #e8ecf0;
    background: #f3f5f8;
    color: #555;
    font-size: 0.88rem;
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: #1a3a6b;
}

/* ===== FOOTER ===== */
.footer-app {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    color: #0d1f3c;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 2rem;
    background: transparent;
}

.footer-app .brand-name {
    font-weight: 700;
    color: #0d1f3c !important;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 30%, #1a3a6b 60%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: loginGlow 20s ease-in-out infinite alternate;
}

@keyframes loginGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-3%, -2%) rotate(5deg); }
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a84c, #f5e6a3, #c9a84c);
}

.login-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #0d1f3c, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: 0 8px 25px rgba(13, 31, 60, 0.3);
    position: relative;
}

.login-icon i {
    font-size: 2rem;
    color: #c9a84c;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a3a6b;
    letter-spacing: -0.5px;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.login-subtitle {
    color: #999;
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 0;
}

.login-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 1.5rem 0;
}

.login-demo-badge {
    background: rgba(26, 58, 107, 0.25);
    border: 1px solid rgba(26, 58, 107, 0.3);
    border-radius: 0.8rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #333;
}

.login-demo-badge strong {
    color: #fff;
}

/* ===== STAT CARDS ===== */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ===== DATA TABLES ===== */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.5rem !important;
    border: 2px solid #e8ecf0 !important;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.82rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.4rem !important;
    padding: 0.3rem 0.7rem !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.8rem;
    color: #8a8fa3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar .nav-link {
        margin: 0.15rem 0;
    }

    .card-body {
        padding: 1rem !important;
    }

    .table {
        font-size: 0.78rem;
    }

    .table td, .table th {
        white-space: nowrap;
        padding: 0.55rem 0.45rem !important;
    }

    .login-card {
        max-width: 100%;
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0.5rem;
    }

    h4 {
        font-size: 1.05rem;
    }

    .btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
    }

    .login-page {
        padding: 0.5rem;
    }
}
