/* ===============================================
   Havalebank - Modern Payment Gateway Dashboard
   Dark/Light Mode Support
   =============================================== */

/* ============ LIGHT THEME (DEFAULT) ============ */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --secondary: #0f172a;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;
    --info-dark: #2563eb;

    /* Theme colors */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: rgba(255,255,255,0.08);
    --bg-sidebar-active: rgba(79, 70, 229, 0.2);
    --bg-topbar: #ffffff;
    --bg-input: #ffffff;
    --bg-table-head: #f8fafc;
    --bg-table-hover: #f8fafc;
    --bg-detail: #f8fafc;
    --bg-code: #f1f5f9;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-sidebar: rgba(255,255,255,0.7);
    --text-sidebar-section: rgba(255,255,255,0.4);

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.12);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --sidebar-width: 270px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ DARK THEME ============ */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #0b1120;
    --bg-sidebar-hover: rgba(255,255,255,0.06);
    --bg-sidebar-active: rgba(79, 70, 229, 0.25);
    --bg-topbar: #1e293b;
    --bg-input: #1e293b;
    --bg-table-head: #162032;
    --bg-table-hover: #162032;
    --bg-detail: #162032;
    --bg-code: #0f172a;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border: #334155;
    --border-light: #1e293b;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.5);
}

/* ============ GLOBAL RESET ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

::selection {
    background: var(--primary);
    color: white;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============ LOGIN PAGE ============ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4f46e5 60%, #6366f1 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: loginGlow 8s ease-in-out infinite alternate;
}

@keyframes loginGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

.login-page.dept-login {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 30%, #059669 60%, #10b981 100%);
}

.login-page.dept-login::before {
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.login-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.login-box .login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-box .login-logo img {
    height: 48px;
    margin-bottom: 16px;
}

.login-box .login-logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-box .login-logo .subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.login-box .login-logo .role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.login-box .login-logo .role-badge.admin {
    background: var(--primary-glow);
    color: var(--primary);
}

.login-box .login-logo .role-badge.dept {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* ============ LAYOUT ============ */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-header {
    padding: 24px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidebar-header .sidebar-logo {
    height: 56px;
    width: auto;
    flex-shrink: 0;
}

.sidebar-header .sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-header .sidebar-brand h2 {
    display: none;
}

.sidebar-header .sidebar-brand .role-tag {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 0;
    width: fit-content;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-header .sidebar-brand .role-tag.admin-tag {
    background: var(--primary);
    color: white;
}

.sidebar-header .sidebar-brand .role-tag.dept-tag {
    background: var(--success);
    color: white;
}

.sidebar-nav {
    padding: 12px 0;
}

.sidebar-nav .nav-section {
    padding: 16px 22px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-sidebar-section);
    font-weight: 700;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 11px 22px;
    color: var(--text-sidebar);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    gap: 12px;
    position: relative;
}

.sidebar-nav a:hover {
    background: var(--bg-sidebar-hover);
    color: white;
}

.sidebar-nav a.active {
    background: var(--bg-sidebar-active);
    color: white;
    border-left-color: var(--primary);
}

.sidebar-nav a .nav-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    opacity: 0.8;
    flex-shrink: 0;
}

.sidebar-nav a.active .nav-icon,
.sidebar-nav a:hover .nav-icon {
    opacity: 1;
}

.sidebar-nav a .nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============ MAIN CONTENT ============ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: var(--transition);
}

.topbar {
    background: var(--bg-topbar);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.topbar h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.topbar-right .user-info .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.topbar-right .user-info .avatar.dept-avatar {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.topbar-right .user-info .user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.topbar-right .user-info .user-role {
    font-size: 11px;
    color: var(--text-light);
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
    transform: rotate(15deg);
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: inline;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

/* ============ CONTENT ============ */
.content {
    padding: 32px;
}

/* ============ STATS CARDS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.05);
}

.stat-card .stat-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--info); }
.stat-card .stat-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.stat-card .stat-icon.yellow { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.stat-card .stat-icon.red { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.stat-card .stat-icon.purple { background: var(--primary-glow); color: var(--primary); }

.stat-card.blue::before { background: var(--info); }
.stat-card.green::before { background: var(--success); }
.stat-card.yellow::before { background: var(--warning); }
.stat-card.red::before { background: var(--danger); }
.stat-card.purple::before { background: var(--primary); }

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============ CARD / PANEL ============ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary);
    font-size: 18px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-detail);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ============ TABLE ============ */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead th {
    background: var(--bg-table-head);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
    vertical-align: middle;
    transition: var(--transition);
}

table tbody tr {
    transition: var(--transition);
}

table tbody tr:hover {
    background: var(--bg-table-hover);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ============ BADGES ============ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.badge i {
    font-size: 10px;
}

.badge-success { background: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.badge-info { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.badge-secondary { background: rgba(100, 116, 139, 0.12); color: #475569; }
.badge-primary { background: var(--primary-glow); color: var(--primary); }

[data-theme="dark"] .badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
[data-theme="dark"] .badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
[data-theme="dark"] .badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
[data-theme="dark"] .badge-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
[data-theme="dark"] .badge-secondary { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
}

.btn:hover::after {
    background: rgba(255,255,255,0.1);
}

.btn:active {
    transform: scale(0.98);
}

.btn i {
    font-size: 14px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-xs);
}

.btn-sm i {
    font-size: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), var(--info-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.btn-info:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-detail);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--border);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    background: var(--bg-detail);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 12px;
}
.btn-ghost:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label i {
    margin-right: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-light);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-hint i {
    margin-right: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ============ ALERTS ============ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .alert-success { color: #34d399; }
[data-theme="dark"] .alert-danger { color: #f87171; }
[data-theme="dark"] .alert-warning { color: #fbbf24; }
[data-theme="dark"] .alert-info { color: #60a5fa; }

/* ============ PAYMENT PAGE ============ */
.payment-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-page .payment-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.payment-page .payment-brand img {
    height: 32px;
}

.payment-page .payment-brand span {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.payment-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

.payment-card .payment-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.payment-card .payment-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.payment-card .payment-header h1 {
    font-size: 20px;
    margin-bottom: 4px;
    position: relative;
}

.payment-card .payment-header .amount {
    font-size: 36px;
    font-weight: 700;
    margin-top: 8px;
    position: relative;
}

.payment-card .payment-body {
    padding: 30px;
}

.bank-info {
    background: var(--bg-detail);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.bank-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.bank-info .info-row:last-child {
    border-bottom: none;
}

.bank-info .info-row .label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.bank-info .info-row .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.copy-btn i {
    font-size: 11px;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 52px;
    margin-bottom: 16px;
    opacity: 0.4;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============ COPY TEXT ============ */
.copy-text {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-detail);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.copy-text .copy-btn {
    flex-shrink: 0;
}

/* ============ DETAIL VIEW ============ */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    padding: 14px 16px;
    background: var(--bg-detail);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.detail-item:hover {
    border-color: var(--border);
}

.detail-item .detail-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-item .detail-label i {
    font-size: 12px;
    color: var(--primary);
}

.detail-item .detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-item.full {
    grid-column: 1 / -1;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 20px 0;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    background: var(--bg-card);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============ UTILITY ============ */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary-c { color: var(--primary) !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.flex-wrap { flex-wrap: wrap; }

/* ============ TOAST NOTIFICATION ============ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: var(--text-primary);
}

.toast.show {
    transform: translateX(0);
}

.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-success i {
    color: var(--success);
}

.toast.toast-error {
    border-left: 4px solid var(--danger);
}

.toast.toast-error i {
    color: var(--danger);
}

/* ============ NOTIFICATION TOGGLE ============ */
.notification-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}

.notification-toggle:hover {
    border-color: var(--warning);
    color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid var(--bg-card);
    animation: badgePulse 2s infinite;
}

/* ============ STAT SUB ============ */
.stat-card .stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============ QUICK ACTIONS BAR ============ */
.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-actions .btn {
    font-size: 13px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 16px;
    }

    .topbar {
        padding: 12px 16px;
    }

    .mobile-toggle {
        display: flex !important;
    }
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ============ ANIMATION ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content > * {
    animation: fadeIn 0.3s ease forwards;
}

/* ============ FOOTER BRAND ============ */
.footer-brand {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 12px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-brand img {
    height: 20px;
    margin-bottom: 6px;
    opacity: 0.5;
}
