/* ============================================================
   GLOBAL BASE STYLE - MODERN
   ============================================================ */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #64748b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --sidebar-width: 250px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* ============================================================
   HEADER - MODERN
   ============================================================ */
.admin-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, #334155 100%);
    color: var(--light-color);
    padding: 0 30px;
    /* biar bisa tinggi dinamis, tapi minimal 70px */
    min-height: var(--header-height);
    height: auto;
    display: flex;
    flex-wrap: wrap; /* <-- supaya isi bisa turun ke baris 2 kalau penuh */
    align-items: center;
    justify-content: space-between;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.btn-back {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.btn-back::before {
    content: '←';
    font-weight: bold;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;    
    row-gap: 8px;
    max-width: 100%;     
    margin: 0 auto;
}


.nav-link {
    padding: 10px 16px;
    color: var(--light-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    text-align: center;
    min-width: 80px;
}


.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 12px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 13px;
}

.user-role {
    font-size: 11px;
    opacity: 0.8;
    color: #94a3b8;
}

.btn-logout {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    white-space: nowrap;
}

.btn-logout::before {
    content: '🚪';
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* ============================================================
   BUTTON STYLES - MODERN
   ============================================================ */
.btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), #4338ca);
}

.btn-gray {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3) !important;
}

.btn-gray:hover {
    background: linear-gradient(135deg, #4b5563, #374151) !important;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4) !important;
}

.btn-green {
    background: linear-gradient(135deg, var(--success-color), #059669) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.btn-green:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.btn-clear-red {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-clear-red:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    border-color: #bd2130 !important;
    color: white !important;
}

.btn-reset-filter {
    padding: 12px 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    text-align: center;
    width: 100%;
}

.btn-reset-filter:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white !important;
    text-decoration: none;
}

.btn-reset-filter::before {
    content: '🔄';
    font-weight: bold;
}

/* ============================================================
   FILTER BOX - MODERN
   ============================================================ */
.filter-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.filter-grid div label {
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    color: #374151;
    font-weight: 600;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.filter-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
}

/* ============================================================
   TABLE STYLE - MODERN
   ============================================================ */
.table-responsive {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table-dark {
    background: linear-gradient(135deg, var(--dark-color), #334155) !important;
}

.table-dark th {
    background: transparent;
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.table-bordered td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f8fafc;
}

.table-striped tbody tr:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* ============================================================
   CARD STYLES - MODERN
   ============================================================ */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
    margin-bottom: 24px;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0 !important;
}

.card-header h5 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 700;
}

.card-body {
    padding: 24px;
}

/* ============================================================
   BADGE STYLES - MODERN
   ============================================================ */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #64748b, #475569) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

/* ============================================================
   FORM STYLES - MODERN
   ============================================================ */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* ============================================================
   ALERT STYLES - MODERN
   ============================================================ */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 600;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    color: #1e40af;
}

/* ============================================================
   MODAL POPUP - MODERN
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    width: 90%;
    max-width: 900px; /* Diperbesar untuk detail import */
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 24px;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.modal-btn-container {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Custom Modal Styles */
.custom-modal {
    border-radius: 20px;
    padding: 24px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
}

.custom-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.custom-modal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

.custom-modal .modal-body {
    padding-top: 16px;
}

.custom-modal label {
    font-size: 15px;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
    color: #374151;
}

.custom-modal textarea {
    width: 100%;
    border-radius: 12px;
    font-size: 14px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    resize: none;
    transition: all 0.3s ease;
}

.custom-modal textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.custom-modal .modal-footer {
    border-top: none;
    padding-top: 20px;
}

/* ============================================================
   LOADING SCREEN - MODERN
   ============================================================ */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

/* ============================================================
   CHECKBOX STYLES - MODERN
   ============================================================ */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-group:hover {
    background-color: #f8fafc;
}

.checkbox-hidden {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-group:hover .checkbox-custom {
    border-color: var(--primary-color);
}

.checkbox-hidden:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-hidden:checked + .checkbox-custom::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 12px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    top: 2px;
    left: 6px;
    transform: rotate(45deg);
    animation: checkmarkPop 0.25s ease-out;
}

@keyframes checkmarkPop {
    0%   { transform: scale(0.4) rotate(45deg); opacity: 0; }
    100% { transform: scale(1)   rotate(45deg); opacity: 1; }
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 35px;
    row-gap: 12px;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* ============================================================
   STATUS & UTILITY STYLES
   ============================================================ */
.row-suspend {
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    color: #dc2626 !important;
    text-decoration: line-through;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.row-suspend:hover {
    opacity: 1;
    background: linear-gradient(135deg, #fecaca, #fca5a5) !important;
}

.make-reward-modal {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 10px;
}

.make-reward-modal table {
    width: 100%;
    border-collapse: collapse;
}

.make-reward-modal td {
    padding: 12px;
}

.make-reward-modal input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.make-reward-modal input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Success Popup Animation */
.success-popup {
    position: fixed;
    top: 20px;
    right: -300px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999999;
}

.success-popup.show {
    right: 20px;
    opacity: 1;
}

/* ============================================================
   ADDITIONAL STYLES FOR CONSISTENCY
   ============================================================ */

/* Button group styling */
.btn-group-sm .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Code styling */
code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #475569;
}

/* Text utilities */
.text-muted {
    color: #64748b !important;
}

.fw-bold {
    font-weight: 600 !important;
}

/* Table text alignment */
.text-center {
    text-align: center !important;
}

/* Margin utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }

/* Padding utilities */
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

/* Flex utilities */
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

/* ============================================================
   DASHBOARD SPECIFIC STYLES
   ============================================================ */

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.stat-card.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.stat-card.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stat-content p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Website Stats */
.website-stat {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.website-stat:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.website-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.website-count {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Quick Actions */
.quick-action-btn {
    display: block;
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
    text-decoration: none;
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.action-text {
    font-weight: 600;
    font-size: 15px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3, .col-md-4, .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ============================================================
   DASHBOARD HEADER & FILTER STYLES
   ============================================================ */
.dashboard-header {
    margin-bottom: 20px;
}

.dashboard-header h1 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
}

.filter-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-section .filter-box {
    max-width: 100% !important;
}

/* ============================================================
   MOBILE MENU STYLES
   ============================================================ */
.btn-mobile-menu {
    display: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-color) 0%, #334155 100%);
    color: white;
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-close-mobile {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.btn-close-mobile:hover {
    color: #f1f5f9;
    transform: scale(1.1);
}

.mobile-nav-links {
    padding: 20px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.mobile-nav-link.active {
    background: rgba(99, 102, 241, 0.2);
    color: white;
    border-left-color: var(--primary-color);
}

.mobile-nav-link.mobile-nav-logout {
    color: #fca5a5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 20px;
}

.mobile-nav-link.mobile-nav-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.mobile-nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1200px) {
    .admin-header {
        padding: 0 20px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .user-info {
        padding: 5px 10px;
    }
    
    .username {
        font-size: 12px;
    }
    
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 0 15px;
        min-height: 60px;
        height: auto;
    }
    
    .header-center {
        display: none;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 60px;
    }
    
    .btn-back, .btn-logout {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .user-info .user-details {
        display: none;
    }
    
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-action {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .websites-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-mobile-menu {
        display: block;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .filter-section {
        padding: 15px;
    }
    
    .filter-section .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-reset-filter {
        margin-top: 10px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .col-md-3, .col-md-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .admin-header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        gap: 10px;
    }
    
    .header-left, .header-center, .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .header-left {
        order: 1;
    }
    
    .header-center {
        order: 2;
        max-width: 100%;
    }
    
    .header-right {
        order: 3;
        gap: 10px;
    }
    
    .user-info {
        display: flex;
        padding: 4px 8px;
    }
    
    .username {
        display: inline;
        font-size: 11px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 1.75rem;
    }
    
    .filter-section {
        padding: 12px;
    }
    
    .mobile-sidebar {
        width: 260px;
    }
    
    .admin-header {
        padding: 10px 15px;
    }
    
    .header-left {
        gap: 10px;
    }
}

/* Success Popup Animation */
.success-popup {
    position: fixed;
    top: 20px;
    right: -300px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999999;
    max-width: 300px;
}

.success-popup.show {
    right: 20px;
    opacity: 1;
}

/* ============================================================
   LEADS MANAGEMENT FILTER STYLES
   ============================================================ */

/* Modern Filter Styles */
.filter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.filter-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select, .filter-input {
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-filter {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-apply {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    text-decoration: none;
    color: white;
}

.btn-reset {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-reset:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Modern Import Button */
.import-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.btn-import-floating {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.btn-import-floating:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
    text-decoration: none;
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); }
}

/* Responsive Design for Leads */
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .btn-import-floating {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .import-btn-container {
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================================
   IMPORT DETAILS MODAL STYLES
   ============================================================ */

.detail-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
}

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.detail-header h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.detail-header p {
    margin: 0;
    opacity: 0.9;
}

/* Summary Cards */
.detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.summary-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.summary-value.text-success {
    color: var(--success-color);
}

.summary-value.text-danger {
    color: var(--danger-color);
}

/* Info Section */
.info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e3e6f0;
}

.section-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #6c757d;
    min-width: 120px;
}

.info-value {
    font-weight: 600;
    color: #2d3748;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

/* Data Table */
.data-section {
    margin-top: 20px;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    margin-top: 10px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 13px;
    min-width: 500px;
}

.detail-table th {
    background: #4e73df;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    border: none;
}

.detail-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e3e6f0;
    word-wrap: break-word;
    max-width: 200px;
}

.detail-table tr:hover {
    background-color: #f8f9fa;
}

/* Column widths for detail table */
.detail-table th:nth-child(1),
.detail-table td:nth-child(1) {
    width: 50px;
    text-align: center;
}

.detail-table th:nth-child(2),
.detail-table td:nth-child(2) {
    width: 120px;
    min-width: 120px;
}

.detail-table th:nth-child(3),
.detail-table td:nth-child(3) {
    width: 100px;
    text-align: center;
    min-width: 100px;
}

.detail-table th:nth-child(4),
.detail-table td:nth-child(4) {
    width: 100px;
    text-align: center;
    min-width: 100px;
}

/* Responsive for detail modal */
@media (max-width: 768px) {
    .detail-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
        margin-left: 0;
    }
    
    .table-container {
        max-height: 300px;
    }
    
    .detail-table {
        font-size: 12px;
        min-width: 400px;
    }
    
    .detail-table th,
    .detail-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .detail-summary {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        padding: 12px;
    }
    
    .table-container {
        max-height: 250px;
    }
    
    .detail-table {
        min-width: 350px;
        font-size: 11px;
    }
}
.import-guide {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    color: #1e40af;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 600;
    margin: 15px 0;
    border-left: 4px solid #3b82f6;
}

.import-guide strong {
    color: #1e40af;
}

.import-guide ul {
    margin-bottom: 10px;
}

.import-guide li {
    margin-bottom: 5px;
    font-size: 14px;
}

.import-guide code {
    background: rgba(255,255,255,0.5);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #1e40af;
    font-weight: bold;
}

/* ===== PAGINATION STYLES ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #007bff;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.page-link.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.page-link:disabled, 
.page-link.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    opacity: 0.6;
}

/* Previous/Next buttons specific styles */
.page-link:first-child,
.page-link:last-child {
    font-weight: 600;
    padding: 8px 16px;
    background-color: #f8f9fa;
}

.page-link:first-child:hover,
.page-link:last-child:hover {
    background-color: #e9ecef;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 5px;
        margin: 20px 0;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
        height: 36px;
    }
    
    .page-link:first-child,
    .page-link:last-child {
        padding: 6px 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .page-link {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .page-link:hover {
        background-color: #4a5568;
        border-color: #718096;
        color: #fff;
    }
    
    .page-link.active {
        background: linear-gradient(135deg, #3182ce, #2c5aa0);
        border-color: #3182ce;
    }
    
    .page-link:first-child,
    .page-link:last-child {
        background-color: #4a5568;
    }
}

/* Animation for page transitions */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagination {
    animation: pageFadeIn 0.5s ease-in-out;
}

/* Loading state for pagination */
.pagination.loading .page-link {
    opacity: 0.6;
    pointer-events: none;
}

/* Ellipsis for truncated pages */
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    color: #6c757d;
    font-weight: bold;
}

/* Active state with pulse effect */
.page-link.active {
    position: relative;
    overflow: hidden;
}

.page-link.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.5;
    }
}

/* Focus states for accessibility */
.page-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Print styles */
@media print {
    .pagination {
        display: none;
    }
}

/* First & Last button styles */
.page-link.first-last {
    font-weight: 600;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.page-link.first-last:hover {
    background-color: #dee2e6;
    border-color: #6c757d;
}

/* Ellipsis style */
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    color: #6c757d;
    font-weight: bold;
    cursor: default;
}

/* Active page highlight */
.page-link.active {
    position: relative;
    font-weight: 600;
    z-index: 1;
}

/* Pagination info text */
.pagination-info {
    text-align: center;
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

        /* Biar tabel bisa di-slide ke kanan */
        .table-scroll {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch; /* enak di HP */
        }

        /* Paksa tabel agak lebar supaya kolom Approved/Rejected kelihatan */
        .table-scroll table {
            min-width: 1300px; /* bisa kamu adjust 1400/1500 kalau masih sempit */
        }

        /* Jangan pecah baris di dalam sel, biar header kolom tetap 1 baris */
        .table-scroll th,
        .table-scroll td {
            white-space: nowrap;
        }

/* ==== NAV HEADER – FULL CLICKABLE PILL ==== */
.admin-header .header-center {
    /* jangan set display di sini, biar media query yg atur */
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 1 auto;
}

/* Anchor = satu tombol utuh */
.admin-header .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 22px;        /* dibesarkan dikit biar icon gak kepotong */
    border-radius: 999px;
    min-width: 110px;
    min-height: 40px;
    box-sizing: border-box;

    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

/* Efek shine di dalam anchor, tapi tidak ganggu klik */
.admin-header .nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0,
                rgba(255,255,255,0.18),
                transparent 55%);
    opacity: 0;
    pointer-events: none;        /* penting: jangan ambil klik */
    transition: opacity 0.2s ease;
}

/* Icon & text rapi dan TIDAK mengambil event mouse */
.admin-header .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
}
.admin-header .nav-text {
    line-height: 1;
    pointer-events: none;
}

/* Hover & active state */
.admin-header .nav-link:hover {
    background: rgba(51, 65, 85, 0.95);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.55);
    transform: translateY(-1px);
}
.admin-header .nav-link:hover::before {
    opacity: 1;
}

.admin-header .nav-link.active {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #f9fafb;
    box-shadow: 0 8px 24px rgba(129, 140, 248, 0.5);
}
.admin-header .nav-link.active::before {
    opacity: 1;
}

/* Jaga2: semua span di dalam nav-link tidak makan klik */
.admin-header .nav-link span {
    pointer-events: none;
}

/* BONUS: di layar sempit tapi belum mobile full (<=1024px),
   menu bisa discroll horizontal, nggak nabrak avatar */
@media (max-width: 1024px) {
    .admin-header .header-center {
        overflow-x: auto;
        padding: 0 8px;
    }
}

           /* Scroll horizontal + sticky kolom Aksi */
        .table-scroll-x {
            overflow-x: auto;
            overflow-y: visible;
        }

        .table-scroll-x table {
            min-width: 1300px; /* boleh kamu sesuaikan */
            border-collapse: collapse;
        }

        .table-scroll-x th,
        .table-scroll-x td {
            white-space: nowrap;
        }

        /* Sticky kolom Aksi di kanan */
        .table-scroll-x thead th.sticky-action-header {
            position: sticky;
            right: 0;
            z-index: 50;                 /* di atas header lain */
            background-color: #111827;   /* sama seperti .table-dark */
            width: 110px;
            text-align: center;
        }

        .table-scroll-x tbody td.sticky-action-cell {
            position: sticky;
            right: 0;
            z-index: 40;                 /* di atas body lain, di bawah header */
            background-color: #ffffff;   /* warna body table */
            width: 110px;
            text-align: center;
        }

        .table-scroll-x thead th.sticky-action-header {
            box-shadow: -2px 0 4px rgba(0,0,0,0.15);
        }

        .table-scroll-x tbody td.sticky-action-cell {
            box-shadow: -2px 0 3px rgba(0,0,0,0.08);
        }

/* =========================================================
   BUTTON VIEW HISTORY (TOKEN CLAIM)
   ========================================================= */
.btn-history {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-history:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

/* =========================================================
   BUTTON REFRESH (TOKEN CLAIM)
   ========================================================= */
.btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #ffffff;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-refresh:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

/* ============================
   HEADER MOBILE: MENU + LOGOUT
   ============================ */
@media (max-width: 640px) {

    /* Header-right: full width, kiri-kanan */
    .admin-header .header-right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between; /* menu di kiri, logout di kanan */
        gap: 10px;
    }

    /* Sembunyikan user-info di HP biar tidak penuh */
    .admin-header .header-right .user-info {
        display: none;
    }

    /* Hamburger button rapi & sejajar */
    .admin-header .btn-mobile-menu {
        display: inline-flex;          /* pastikan muncul di mobile */
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;                    /* biar kotaknya pas */
    }

    /* Logout tetap kelihatan seperti biasa */
    .admin-header .btn-logout {
        margin-left: auto;             /* dorong ke kanan */
    }
}


