/* ============================================================
   BlockChain Budget Tracker – Global Styles
   ============================================================ */

/* ---- Color palette variables ---- */
:root {
    --brand-primary:   #0d6efd;
    --brand-success:   #198754;
    --brand-danger:    #dc3545;
    --brand-warning:   #ffc107;
    --surface:         #ffffff;
    --bg-page:         #f0f2f5;
    --text-muted-soft: #6c757d;
}

/* ---- Base ---- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: #212529;
}

/* ---- Login page ---- */
.login-page {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 60%, #084298 100%);
    min-height: 100vh;
}

.login-page .card {
    border: none;
    border-radius: 16px;
}

.brand-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e7f0ff, #d0e4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Stat cards ---- */
.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Quick-link cards (hover effect) ---- */
.quick-link-card {
    transition: transform .15s ease, box-shadow .15s ease;
    color: inherit;
}
.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.12) !important;
    color: inherit;
}

/* ---- Navbar live dot pulse ---- */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: .4; transform: scale(1.3); }
}

/* ---- btn-xs (extra-small button) ---- */
.btn-xs {
    padding: .15rem .5rem;
    font-size: .75rem;
    border-radius: .25rem;
}

/* ---- Toast notifications ---- */
.toast-notification {
    min-width: 280px;
    border-radius: 10px;
}

/* ---- Code / hash display ---- */
code {
    font-size: .8em;
    background: #f1f3f5;
    padding: 1px 4px;
    border-radius: 3px;
}

/* ---- Chain integrity banner ---- */
.alert-chain-ok {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #064e3b;
}

/* ---- Tables ---- */
.table th {
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* ---- Card header ---- */
.card-header {
    font-size: .9rem;
    border-bottom: 1px solid #e9ecef;
    padding: .75rem 1rem;
}

/* ---- Scrollbar for chain visualization ---- */
.chain-wrapper::-webkit-scrollbar {
    height: 6px;
}
.chain-wrapper::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}
.chain-wrapper::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

/* ---- Accordion clean look ---- */
.accordion-button:not(.collapsed) {
    background-color: #e7f0ff;
    color: #0d6efd;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}
