/* ===============================
   THEME VARIABLES
=============================== */

:root {
    --bg: #111;
    --fg: #eee;
    --panel: #1e1e1e;
    --panel-alt: #181818;
    --accent: #f5c542;
    --muted: #aaa;
}

[data-theme="light"] {
    --bg: #e2e9f1;
    --fg: #111;
    --panel: #f2f4f7;
    --panel-alt: #e4e7eb;
    --accent: #d9a400;
    --muted: #555;
}

/* ===============================
   BASE
=============================== */

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--fg);
    padding-top: 160px;
}

a {
    color: #4ea3ff;
    text-decoration: none;
}

/* ===============================
   LOGO
=============================== */

.brand-link {
    display: inline-flex;
    align-items: center;
}

.logo {
    height: 75px;
}

/* ===============================
   PAGE CONTAINER
=============================== */

.page-container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 8px 20px;
}

/* NEW PIECE ADDED*/

#scrollSpacer {
    height: 12vh;
    min-height: 96px;
    max-height: 200px;
}

/* ===============================
   NOTES BADGE
=============================== */

.notes-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(245,197,66,0.9);
    color: #111;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
}

/* ===============================
   ICON BUTTONS (GLOBAL)
=============================== */

.icon-btn {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
}

.icon-btn:hover {
    background-color: rgba(255,255,255,0.08);
}


#addNoteBtn {
    width: 50% !important;
}
#addNoteBtn {
    flex: 0 0 50%;
}

.btn-primary {
    background: #2c7be5;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1f6ad6;
}

.badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 75px;      /* controls uniform width */
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-green {
    background: #1f6f43;
    color: #b7f5d0;
}

.badge-blue {
    background: #1f4e6f;
    color: #b7d8f5;
}

.badge-orange {
    background: #6f4a1f;
    color: #f5d2b7;
}

.badge-grey {
    background: #444;
    color: #ccc;
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s ease;
}
