body {
    background: #0f172a;
    /* dark slate background */
    color: #e2e8f0;
    /* light text */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
}

.app {
    max-width: 420px;
    margin: auto;
    padding-bottom: 40px;
}

/* Dark header - same as other pages */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #1e293b;
    /* darker than body */
    color: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.top-header small {
    font-size: 12px;
    color: #cbd5f5;
}

.top-header h4 {
    font-size: 18px;
    margin-top: 4px;
}

.back-icon {
    color: #fff;
    font-size: 20px;
}

/* Dark cards */
.card,
.list-group-item {
    background: #1e293b;
    /* dark card background */
    color: #e2e8f0;
    /* light text */
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5f5;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.btn-save,
.btn-primary {
    width: 100%;
    background: #2563eb;
    color: #fff;
    padding: 12px 0;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-outline-primary,
.btn-outline-danger {
    border-color: #334155;
    color: #e2e8f0;
}

.btn-outline-primary:hover,
.btn-outline-danger:hover {
    background: #334155;
}

/* Transaction items */
.transaction-item {
    border-bottom: 1px solid #334155;
    padding: 1rem 0;
}

.debit {
    color: #f87171;
}

/* softer red for dark mode */
.credit {
    color: #4ade80;
}

/* softer green */

/* Alerts in dark mode */
.alert {
    border-radius: 12px;
}

.alert-success {
    background: #065f46;
    color: #d1fae5;
}

.alert-danger {
    background: #7f1d1d;
    color: #fecaca;
}

.alert-warning {
    background: #78350f;
    color: #fde68a;
}

/* Modal dark mode */
.modal-content {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

.modal-header {
    border-bottom: 1px solid #334155;
}

.modal-footer {
    border-top: 1px solid #334155;
}

.text-muted {
    color: #94a3b8 !important;
}

.table {
    color: #e2e8f0;
}

.table th {
    color: #cbd5f5;
    border-bottom: 1px solid #334155;
}

.table td {
    border-bottom: 1px solid #334155;
}

.table-hover tbody tr:hover {
    background: #334155;
}