/* ============================================
   KAS BANJARARUM REGENCY - PROFESSIONAL DESIGN
   ============================================ */

/* === Google Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS Custom Properties === */
:root {
    /* Primary Palette */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.25);

    /* Accent Colors */
    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-rose: #f43f5e;
    --accent-rose-light: #fb7185;
    --accent-amber: #f59e0b;
    --accent-amber-light: #fbbf24;
    --accent-sky: #0ea5e9;

    /* Neutral Palette */
    --bg-base: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-2: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-card-hover: rgba(51, 65, 85, 0.6);
    --border-color: rgba(148, 163, 184, 0.12);
    --border-color-light: rgba(148, 163, 184, 0.2);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --gradient-danger: linear-gradient(135deg, #dc2626 0%, #f43f5e 50%, #fb7185 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    --gradient-saldo: linear-gradient(135deg, #059669 0%, #10b981 40%, #0ea5e9 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4), 0 4px 10px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow-primary: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Base Reset & Typography === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* === Mobile App Shell === */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0;
}

/* === App Header === */
.app-header {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.app-header .header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.app-header .header-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

/* === Content Area === */
.app-content {
    padding: 20px;
}

/* === Glass Card === */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

.glass-card .card-inner {
    padding: 24px;
}

/* === Saldo Card === */
.saldo-card {
    background: var(--gradient-saldo);
    border-radius: var(--radius-2xl);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow-success);
}

.saldo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.saldo-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.saldo-card .saldo-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.saldo-card .saldo-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.saldo-card .saldo-currency {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

/* === Stat Cards === */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    transition: all var(--transition-base);
}

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

.stat-card .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 12px;
}

.stat-card .stat-icon.income {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.stat-card .stat-icon.expense {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
}

.stat-card .stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-card .stat-value.income {
    color: var(--accent-emerald);
}

.stat-card .stat-value.expense {
    color: var(--accent-rose);
}

/* === Section Header === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.section-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface-2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Transaction List === */
.trx-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trx-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
    gap: 14px;
}

.trx-item:last-child {
    border-bottom: none;
}

.trx-item:hover {
    background: var(--bg-card-hover);
}

.trx-item .trx-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.trx-item .trx-icon.income {
    background: rgba(16, 185, 129, 0.12);
}

.trx-item .trx-icon.expense {
    background: rgba(244, 63, 94, 0.12);
}

.trx-item .trx-info {
    flex: 1;
    min-width: 0;
}

.trx-item .trx-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trx-item .trx-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.trx-item .trx-amount {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.trx-item .trx-amount.income {
    color: var(--accent-emerald);
}

.trx-item .trx-amount.expense {
    color: var(--accent-rose);
}

/* === Buttons === */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    cursor: pointer;
    transition: all var(--transition-base);
    gap: 8px;
    letter-spacing: -0.01em;
    text-decoration: none;
    width: 100%;
}

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

.btn-premium-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-primary);
}

.btn-premium-primary:hover {
    opacity: 0.92;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-premium-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-glow-success);
}

.btn-premium-success:hover {
    opacity: 0.92;
    color: white;
}

.btn-premium-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-premium-danger:hover {
    opacity: 0.92;
    color: white;
}

.btn-premium-amber {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    color: var(--text-inverse);
    font-weight: 700;
}

.btn-premium-amber:hover {
    opacity: 0.92;
    color: var(--text-inverse);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    border: 1px solid var(--border-color-light);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    gap: 6px;
}

.btn-ghost:hover {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border-color: var(--border-color-light);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-back:hover {
    background: var(--bg-surface-2);
    color: var(--text-primary);
}

.btn-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.85rem;
    text-decoration: none;
}

.btn-icon-edit {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
}

.btn-icon-edit:hover {
    background: rgba(245, 158, 11, 0.25);
    color: var(--accent-amber-light);
}

.btn-icon-delete {
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent-rose);
}

.btn-icon-delete:hover {
    background: rgba(244, 63, 94, 0.25);
    color: var(--accent-rose-light);
}

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

.form-group:last-of-type {
    margin-bottom: 24px;
}

.form-label-pro {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.form-input-pro {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color-light);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-base);
    appearance: none;
    -webkit-appearance: none;
}

.form-input-pro:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-surface-2);
}

.form-input-pro::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

select.form-input-pro {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* === Admin Menu Grid === */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 16px;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-light);
}

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

.menu-card:nth-child(1)::before { background: var(--gradient-primary); }
.menu-card:nth-child(2)::before { background: var(--gradient-success); }
.menu-card:nth-child(3)::before { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.menu-card:nth-child(4)::before { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.menu-card:nth-child(5)::before { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.menu-card .menu-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.menu-card:nth-child(1) .menu-icon { background: rgba(99, 102, 241, 0.12); }
.menu-card:nth-child(2) .menu-icon { background: rgba(16, 185, 129, 0.12); }
.menu-card:nth-child(3) .menu-icon { background: rgba(14, 165, 233, 0.12); }
.menu-card:nth-child(4) .menu-icon { background: rgba(139, 92, 246, 0.12); }
.menu-card:nth-child(5) .menu-icon { background: rgba(245, 158, 11, 0.12); }

.menu-card .menu-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* === Table Styles === */
.table-pro {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-pro thead th {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table-pro tbody td {
    font-size: 0.82rem;
    padding: 14px 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-pro tbody tr {
    transition: background var(--transition-fast);
}

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

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

/* === Badge Pro === */
.badge-pro {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
    gap: 4px;
}

.badge-pro.income {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.badge-pro.expense {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
}

.badge-pro.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.badge-pro.danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
}

/* === Alert Pro === */
.alert-pro {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    animation: slideDown 0.3s ease-out;
}

.alert-pro.success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-pro.danger {
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent-rose-light);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* === Status Iuran List === */
.iuran-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.iuran-item:last-child {
    border-bottom: none;
}

.iuran-item:hover {
    background: var(--bg-card-hover);
}

.iuran-blok {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.iuran-nama {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* === Login Specific === */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-glow-primary);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

/* === Logout Button === */
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-rose);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-logout:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.5);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state .empty-text {
    font-size: 0.82rem;
    font-weight: 500;
}

/* === Footer === */
.app-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

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

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

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

.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out; }
.animate-delay-1 { animation-delay: 0.1s; animation-fill-mode: both; }
.animate-delay-2 { animation-delay: 0.2s; animation-fill-mode: both; }
.animate-delay-3 { animation-delay: 0.3s; animation-fill-mode: both; }
.animate-delay-4 { animation-delay: 0.4s; animation-fill-mode: both; }

/* === Spacers === */
.space-y-12 > * + * { margin-top: 12px; }
.space-y-16 > * + * { margin-top: 16px; }
.space-y-20 > * + * { margin-top: 20px; }
.space-y-24 > * + * { margin-top: 24px; }

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-2);
    border-radius: var(--radius-full);
}

/* === Back Link === */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 0;
    transition: color var(--transition-base);
}

.back-link:hover {
    color: var(--primary-light);
}

/* === Text helpers === */
.text-income { color: var(--accent-emerald) !important; }
.text-expense { color: var(--accent-rose) !important; }
.text-muted-pro { color: var(--text-muted) !important; }
.text-secondary-pro { color: var(--text-secondary) !important; }
.fw-800 { font-weight: 800 !important; }

/* === Actions cell === */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

/* === Responsive Table Wrapper  === */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* === Tab Navigation === */
.tab-nav {
    display: flex;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 4px;
    gap: 4px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.06);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.tab-btn.active svg {
    stroke: white;
}

/* === Tab Panels === */
.tab-panel {
    display: none;
    animation: fadeInTab 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

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

/* === Pagination Buttons === */
.btn-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-page:hover {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border-color: var(--border-color-light);
}

.btn-page.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    cursor: default;
}

.btn-page.disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
