/* =========================
   L-EDGER • GLOBAL THEME
   ========================= */
    /*Tab changing styles*/
.tab-container {
    display: flex;
    border-bottom: 4px solid #641200;
    gap: 10px;
    padding: 0 10px;
}
.tab-container:hover {
    border-bottom:4px solid #ffe989;
}

.tab {
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    color:#ffe989;
    text-decoration: none;
}

.tab:hover 
{ 
    background: #ffe989; color:#641200; 
}

.tab.active 
{ 
    background: #641200; 
    color:#ffe989; 
    border-bottom: 4px solid #641200; 
}


:root {
    --bg: #0d0d0d;
    --panel: #141414;
    --card: #1b1b1b;
    --border: #2a2a2a;
    --text: #eaeaea;
    --muted: #9a9a9a;
    --accent: #7c2323;
    --good: #2e7d32;
    --warn: #b45309;
    --bad: #b91c1c;
    --font: "Roboto Mono", monospace;
}

* {
    box-sizing: border-box;
    font-family: var(--font);
}

body.ledger-theme {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

/* =========================
   NOTION HOME
   ========================= */

.notion-home {
    max-width: 880px;
    margin: auto;
    padding: 48px 24px;
}

.notion-home blockquote {
    color: var(--muted);
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    margin-bottom: 32px;
}

.notion-home h1 {
    font-size: 32px;
    margin: 0 0 8px;
    color: var(--accent);
}

.notion-home h3 {
    margin-top: 40px;
    color: var(--muted);
}

.ledger-poem {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #d6d6d6;
}

.notion-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.notion-links a {
    text-decoration: none;
    padding: 14px;
    border-radius: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    transition: border 0.2s;
}

.notion-links a:hover {
    border-color: var(--accent);
}

/* =========================
   NOTION LAYOUT
   ========================= */

.notion-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 24px 14px;
}

.sidebar div {
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: 6px;
}

.sidebar div:hover {
    background: var(--card);
    color: var(--text);
}

.sidebar .active {
    background: var(--accent);
    color: #fff;
}

/* =========================
   CONTENT
   ========================= */

.content {
    padding: 36px;
}

.content h1 {
    margin-top: 0;
    color: var(--accent);
}

.content h3 {
    margin-top: 32px;
}

.content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    color: var(--muted);
}

/* =========================
   TABLES
   ========================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-size: 13px;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    color: var(--muted);
    font-weight: 500;
}

tr:hover td {
    background: #151515;
}

/* =========================
   INPUTS
   ========================= */

input {
    width: 100%;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    margin: 14px 0;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

/* =========================
   STATUS COLORS
   ========================= */

.status-PAID { color: var(--good); }
.status-PENDING { color: var(--warn); }
.status-OVERDUE { color: var(--bad); }
.status-NOT\ TAKEN { color: var(--muted); }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    .notion-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: flex;
        overflow-x: auto;
    }

    .sidebar div {
        white-space: nowrap;
        margin-right: 10px;
    }
}


/* =========================
   COLD HARD CASH EXTENSIONS
   ========================= */

.cold-cash h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.cold-cash .subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

/* Money emphasis */
.cash {
    font-weight: 600;
}

.added {
    color: var(--good);
    font-weight: 500;
}

.removed {
    color: var(--bad);
    font-weight: 500;
}

/* Reason tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
}

/* Semantic tag colors */
.tag.loaned {
    border-color: var(--warn);
    color: var(--warn);
}

.tag.added {
    border-color: var(--good);
    color: var(--good);
}

.tag.gift {
    border-color: #7c5cff;
    color: #b8a7ff;
}

.tag.fund {
    border-color: #f59e0b;
    color: #fbbf24;
}

.tag.neutral {
    opacity: 0.7;
}

