/* ========================================
   Cek Rekening EchoPay - Custom Styles
   ======================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #00bf72 0%, #008f55 100%);
    --primary-dark: #004a2c;
    --accent: #00bf72;
    --accent-hover: #009e5e;
    --sidebar-bg: #111827;
    --sidebar-hover: #1f2937;
    --sidebar-active: #374151;
    --body-bg: #f3f4f6;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.25s ease;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   PUBLIC PAGE
   ======================================== */

.public-body {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-navbar {
    background: rgba(0,0,0,0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.public-navbar .navbar-brand {
    color: #fff !important;
    letter-spacing: -0.3px;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-icon i {
    font-size: 2.2rem;
    color: #fff;
}

.check-card {
    border-radius: 16px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.check-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.check-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.check-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.check-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: #adb5bd;
}

.result-card {
    border-radius: 16px;
    animation: slideUp 0.4s ease;
    position: relative;
    z-index: 5;
}

.result-card.result-success {
    border-left: 4px solid #198754;
}

.result-card.result-failed {
    border-left: 4px solid #dc3545;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.public-footer {
    margin-top: auto;
    padding: 20px 0;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.public-footer .text-muted {
    color: rgba(255,255,255,0.6) !important;
}

/* Bank Dropdown */
.bank-dropdown {
    max-height: 350px;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
    z-index: 1050;
}

.bank-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.bank-dropdown .dropdown-item:hover {
    background: #f0f2ff;
}

.bank-dropdown .dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    padding: 8px 16px;
    background: #f8f9fa;
    position: sticky;
    top: 0;
}

.bank-dropdown::-webkit-scrollbar {
    width: 6px;
}

.bank-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.bank-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ========================================
   AUTH PAGES (Login / Setup)
   ======================================== */

.auth-body {
    background: var(--primary-gradient);
    min-height: 100vh;
}

.auth-card {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    backdrop-filter: blur(20px);
}

.auth-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon i {
    font-size: 1.6rem;
    color: #fff;
}

/* ========================================
   ADMIN LAYOUT
   ======================================== */

.admin-body {
    background: var(--body-bg);
    min-height: 100vh;
}

.admin-navbar {
    background: var(--sidebar-bg) !important;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background-color: var(--sidebar-bg) !important;
    color: #cdd6e0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1040;
}

.sidebar-brand {
    font-size: 1.1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand i {
    color: var(--accent);
}

.sidebar-nav .nav-link {
    color: #a0aec0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
    border-left-color: rgba(102,126,234,0.5);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: var(--sidebar-active);
    border-left-color: var(--accent);
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    padding: 24px 30px;
    overflow-x: hidden;
}

.admin-content-header h4 {
    color: #1a1a2e;
}

/* ========================================
   STATS CARDS
   ======================================== */

.stats-card {
    border-radius: 14px;
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ========================================
   TABLES (Admin Premium Design)
   ======================================== */

.table {
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    white-space: nowrap;
    border: none;
    padding: 12px 20px;
    background: transparent !important;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
    background: #ffffff;
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.table tbody tr {
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    border-radius: 8px;
    transition: var(--transition);
}

.table tbody tr:hover td {
    background: #f8fafc;
}

.table td:first-child { 
    border-left: 1px solid #f1f5f9;
    border-radius: 8px 0 0 8px; 
}
.table td:last-child { 
    border-right: 1px solid #f1f5f9;
    border-radius: 0 8px 8px 0; 
}

.badge-sm {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    border-radius: 14px;
    border: none;
}

.card-header {
    border-radius: 14px 14px 0 0 !important;
    border-bottom: 1px solid #e9ecef;
}

/* ========================================
   FORM CONTROLS
   ======================================== */

.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid #dee2e6;
    padding: 10px 14px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.form-control-lg {
    padding: 14px 18px;
    font-size: 1rem;
}

.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* ========================================
   COOLDOWN NOTICE
   ======================================== */

.cooldown-notice {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   LOADING SHIMMER
   ======================================== */

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 280px;
        min-width: auto;
        position: fixed;
        left: 0;
        top: 0;
    }
    
    .admin-main {
        padding: 16px;
    }

    .admin-wrapper {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .check-card .card-body {
        padding: 1.25rem !important;
    }
    
    .hero-icon {
        width: 64px;
        height: 64px;
    }

    .hero-icon i {
        font-size: 1.8rem;
    }
}

/* ========================================
   SCROLLBAR GLOBAL
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: none;
    color: var(--accent);
}

.pagination .page-item.active .page-link {
    background: var(--accent);
    color: #fff;
}
