/* =======================================
   Class Fund Management — Design System
   ======================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary palette – deep indigo-violet */
    --primary-50:  #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Accent – emerald */
    --accent-400: #34d399;
    --accent-500: #10b981;
    --accent-600: #059669;

    /* Danger – rose */
    --danger-400: #fb7185;
    --danger-500: #f43f5e;
    --danger-600: #e11d48;

    /* Warning – amber */
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;

    /* Neutrals */
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    /* Surfaces */
    --surface-bg:    #060918;
    --surface-card:  rgba(30, 41, 59, 0.55);
    --surface-hover: rgba(51, 65, 85, 0.45);
    --surface-glass: rgba(255, 255, 255, 0.04);

    /* Borders */
    --border-subtle: rgba(148, 163, 184, 0.12);
    --border-focus:  var(--primary-400);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.30), 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg:  0 10px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow-primary: 0 0 20px rgba(99, 102, 241, 0.25);
    --shadow-glow-accent:  0 0 20px rgba(16, 185, 129, 0.20);
    --shadow-glow-danger:  0 0 20px rgba(244, 63, 94, 0.20);

    /* Radii */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--surface-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Background Blobs ---------- */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    animation: blobFloat 18s ease-in-out infinite alternate;
}
.blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary-600), transparent 70%);
    top: -120px; left: -100px;
}
.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-500), transparent 70%);
    bottom: -80px; right: -80px;
    animation-delay: -6s;
}
.blob-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, var(--primary-400), transparent 70%);
    top: 50%; left: 55%;
    animation-delay: -12s;
}
@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, -40px) scale(1.08); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---------- App Container ---------- */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ---------- Header ---------- */
.app-header {
    padding: 24px 0 20px;
    animation: fadeSlideDown var(--duration-slow) var(--ease-out) both;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-md);
    color: #fff;
    box-shadow: var(--shadow-glow-primary);
}
.app-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f1f5f9, var(--primary-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.header-actions {
    display: flex;
    gap: 10px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    box-shadow: var(--shadow-sm), var(--shadow-glow-primary);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}
.btn-ghost {
    background: var(--surface-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--gray-500);
}
.btn-danger {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
    color: #fff;
    box-shadow: var(--shadow-sm), var(--shadow-glow-danger);
}
.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--shadow-glow-danger);
}

/* ---------- Summary Cards ---------- */
.summary-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.summary-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    backdrop-filter: blur(16px);
    transition: all var(--duration-normal) var(--ease-out);
    animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
}
.summary-card:nth-child(1) { animation-delay: 80ms; }
.summary-card:nth-child(2) { animation-delay: 160ms; }
.summary-card:nth-child(3) { animation-delay: 240ms; }
.summary-card:nth-child(4) { animation-delay: 320ms; }

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(148, 163, 184, 0.2);
}
.card-icon {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}
.card-balance .card-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    color: var(--primary-300);
}
.card-income .card-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
    color: var(--accent-400);
}
.card-expense .card-icon {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(251, 113, 133, 0.2));
    color: var(--danger-400);
}
.card-count .card-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: var(--warning-400);
}
.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.card-amount {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-balance .card-amount { color: var(--primary-200); }
.card-income  .card-amount { color: var(--accent-400); }
.card-expense .card-amount { color: var(--danger-400); }
.card-count   .card-amount { color: var(--warning-400); }

/* ---------- Filter / Search ---------- */
.filter-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
    animation-delay: 350ms;
    flex-wrap: wrap;
}
.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.search-box input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: var(--surface-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    backdrop-filter: blur(8px);
    transition: all var(--duration-normal) var(--ease-out);
    outline: none;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.filter-chips {
    display: flex;
    gap: 8px;
}
.chip {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--surface-glass);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(8px);
}
.chip:hover {
    background: var(--surface-hover);
    border-color: var(--gray-500);
    color: var(--text-primary);
}
.chip.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow-primary);
}

/* ---------- Transaction Section ---------- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
    animation-delay: 400ms;
}
.section-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.record-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---------- Transaction List ---------- */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.transaction-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    transition: all var(--duration-normal) var(--ease-out);
    animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
}
.transaction-item:hover {
    background: var(--surface-hover);
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateX(4px);
}
.tx-icon {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    font-size: 1.1rem;
}
.tx-icon.income {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.15));
    color: var(--accent-400);
}
.tx-icon.expense {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(251, 113, 133, 0.15));
    color: var(--danger-400);
}
.tx-details {
    flex: 1;
    min-width: 0;
}
.tx-category {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tx-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}
.tx-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tx-amount {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}
.tx-amount.income { color: var(--accent-400); }
.tx-amount.expense { color: var(--danger-400); }

.tx-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}
.transaction-item:hover .tx-actions {
    opacity: 1;
}
.btn-icon {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast);
}
.btn-icon:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}
.btn-icon.delete:hover {
    background: rgba(244, 63, 94, 0.15);
    color: var(--danger-400);
}

/* ---------- Empty State ---------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
    gap: 10px;
    animation: fadeIn var(--duration-slow) var(--ease-out);
}
.empty-state p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.empty-state span {
    font-size: 0.82rem;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--gray-800);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.92) translateY(20px);
    transition: transform var(--duration-normal) var(--ease-out);
}
.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}
.modal-sm {
    max-width: 360px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
}
.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.btn-close {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast);
}
.btn-close:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}
.modal-body {
    padding: 20px 24px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 20px;
}

/* ---------- Form ---------- */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--gray-900);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--duration-normal) var(--ease-out);
    outline: none;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.form-group select option {
    background: var(--gray-900);
    color: var(--text-primary);
}

/* ---------- Type Toggle ---------- */
.type-toggle {
    display: flex;
    gap: 8px;
}
.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--gray-900);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}
.toggle-btn:hover { border-color: var(--gray-500); }
.toggle-btn.active[data-type="income"] {
    border-color: var(--accent-500);
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-400);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}
.toggle-btn.active[data-type="expense"] {
    border-color: var(--danger-500);
    background: rgba(244, 63, 94, 0.12);
    color: var(--danger-400);
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.1);
}

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    box-shadow: var(--shadow-md);
    animation: toastIn var(--duration-normal) var(--ease-out) both;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
}
.toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
}
.toast.error {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.9), rgba(225, 29, 72, 0.9));
}
.toast.info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.9));
}
.toast.removing {
    animation: toastOut var(--duration-normal) var(--ease-out) both;
}

/* ---------- Image Upload ---------- */
.w-full { width: 100%; }
.image-upload-wrapper {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.image-preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--gray-900);
}
.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all var(--duration-fast);
}
.btn-remove-image:hover {
    background: var(--danger-600);
}

/* ---------- Transaction Evidence Tag ---------- */
.tx-evidence-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-300);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast);
}
.tx-evidence-tag:hover {
    background: rgba(99, 102, 241, 0.25);
    color: var(--primary-200);
}

/* ---------- Image Viewer ---------- */
.viewer-modal {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.viewer-modal img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}
.btn-close-viewer {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Admin & Approval System ---------- */
.admin-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--primary-300);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.admin-login-btn {
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: var(--primary-300) !important;
}
.admin-login-btn:hover {
    border-color: var(--primary-400) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary-200) !important;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
}
.login-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

/* Approval Badge */
.approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
.approval-badge.approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-400);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.approval-badge.pending {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning-400);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Approve/Unapprove button in transaction item */
.btn-icon.approve {
    color: var(--accent-400);
}
.btn-icon.approve:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-400);
}
.btn-icon.unapprove {
    color: var(--warning-400);
}
.btn-icon.unapprove:hover {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning-400);
}

/* Readonly Notice */
.readonly-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    z-index: 50;
    animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
}

/* Transaction item approval status row */
.tx-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* ---------- Animations ---------- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .summary-section {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
    }
    .header-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
    .summary-section {
        grid-template-columns: 1fr;
    }
    .filter-section {
        flex-direction: column;
    }
    .search-box { width: 100%; }
    .filter-chips { width: 100%; }
    .filter-chips .chip { flex: 1; text-align: center; }
    .app-container { padding: 0 14px 40px; }
    .summary-card { padding: 16px; }
    .card-amount { font-size: 1.15rem; }
}

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
