/* ====== RESET / BASIS ====== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #222;
}

body {
    /* plads til header + bottom nav */
    padding-top: 56px;
    padding-bottom: 60px;
}

button {
    font: inherit;
}

/* ====== SPLASH SCREEN ====== */
#splash {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    background-size: 200% 200%;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    animation: splash-bg 6s ease-in-out infinite;
}

#splash.hide {
    opacity: 0;
    visibility: hidden;
}

#splash .logo {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: 0;
    animation: logo-pop 0.8s ease-out forwards;
}

#splash .spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite, pulse 1.6s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes splash-bg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes logo-pop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ====== HEADERBAR ====== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: transform 0.25s ease;
}

.topbar--hidden {
    transform: translateY(-100%);
}

.topbar__title {
    font-size: 1.1rem;
    font-weight: 600;
}

.topbar__action {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ====== MAIN CONTENT / VIEWS ====== */
main#app {
    min-height: calc(100vh - 56px - 60px);
    padding: 12px 12px 24px;
}

.view {
    display: none;
    animation: fadeIn 0.2s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ====== BOTTOM NAVIGATION ====== */
.bottombar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1000;
}

.bottombar__item {
    flex: 1;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #666;
    gap: 2px;
}

.bottombar__item span.icon {
    font-size: 1.2rem;
}

.bottombar__item.active {
    color: #0d47a1;
    font-weight: 600;
}

/* ====== LIDT TABLET / DESKTOP TWEAKS ====== */
@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
    }
}

/* ========================================================= */
/* ====================== LOGIN SCREEN ====================== */
/* ========================================================= */

.login-screen {
    position: fixed;
    inset: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9000; /* under splash, over alt andet */
}

.login-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form h1 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    text-align: center;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.login-field input {
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    outline: none;
}

.login-field input:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 0 1px rgba(13, 71, 161, 0.1);
}

.login-error {
    min-height: 1.2em;
    margin: 0;
    font-size: 0.8rem;
    color: #c62828;
    text-align: center;
}

.login-button {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: #0d47a1;
    color: #ffffff;
}

/* ====== Profil: logout & theme toggle ====== */

.btn-logout {
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: #c62828;
    color: #ffffff;
}

.theme-toggle {
    margin-top: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid #cfd8dc;
    background: transparent;
    color: #222;
}

/* ====== Skjul app indtil login er godkendt ====== */
.topbar,
.bottombar,
#app {
    display: none;
}

/* ========================================================= */
/* ======================= DARK MODE ======================== */
/* ========================================================= */

body.theme-dark {
    background: #121212;
    color: #eeeeee;
}

body.theme-dark #splash {
    background: linear-gradient(135deg, #000428, #004e92);
}

body.theme-dark .topbar {
    background: #1f1f1f;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

body.theme-dark .bottombar {
    background: #1f1f1f;
    border-top-color: #333333;
}

body.theme-dark .bottombar__item {
    color: #bbbbbb;
}

body.theme-dark .bottombar__item.active {
    color: #90caf9;
}

body.theme-dark .card {
    background: #1f1f1f;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

body.theme-dark .card p {
    color: #dddddd;
}

body.theme-dark .login-screen {
    background: #121212;
}

body.theme-dark .login-form {
    background: #1f1f1f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

body.theme-dark .login-field input {
    background: #121212;
    color: #eeeeee;
    border-color: #555555;
}

body.theme-dark .login-field label {
    color: #cccccc;
}

body.theme-dark .login-button {
    background: #1976d2;
}

body.theme-dark .btn-logout {
    background: #d32f2f;
}

body.theme-dark .theme-toggle {
    border-color: #555555;
    color: #eeeeee;
}

/* ========================================================= */
/* ======================= UDLÆG ============================ */
/* ========================================================= */

.expense-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expense-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expense-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.expense-field input,
.expense-field select {
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    outline: none;
}

.expense-field input:focus,
.expense-field select:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 0 1px rgba(13, 71, 161, 0.1);
}

.expense-submit {
    margin-top: 4px;
    align-self: flex-start;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: #0d47a1;
    color: #ffffff;
}

/* Listevisning */

.expense-group {
    margin-bottom: 16px;
}

.expense-group-title {
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.expense-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expense-item {
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-item-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.expense-amount {
    font-weight: 600;
    font-size: 0.95rem;
}

.expense-date {
    font-size: 0.8rem;
    color: #777;
}

.expense-description {
    font-size: 0.85rem;
    color: #444;
    margin-top: 2px;
}

/* Dark mode justeringer (hvis du bruger theme-dark) */
body.theme-dark .expense-field label {
    color: #cccccc;
}

body.theme-dark .expense-field input,
body.theme-dark .expense-field select {
    background: #121212;
    color: #eeeeee;
    border-color: #555555;
}

body.theme-dark .expense-item {
    border-bottom-color: #333333;
}

body.theme-dark .expense-group-title {
    color: #bbbbbb;
}
.expense-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.expense-item-left {
    flex: 1;
}

.expense-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expense-btn-settle,
.expense-btn-delete {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px;
    line-height: 1;
}

.expense-btn-settle:hover,
.expense-btn-delete:hover {
    transform: scale(1.1);
}

/* Afregnede linjer */
.expense-item--settled {
    opacity: 0.6;
}

.expense-item--settled .expense-amount,
.expense-item--settled .expense-description {
    text-decoration: line-through;
}

/* Total pr. kategori */
.expense-group-total {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
}

/* Dark mode tweaks, hvis du bruger theme-dark */
body.theme-dark .expense-group-total {
    color: #dddddd;
}
/* Filter-linje over listen */
.expense-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.expense-filter label {
    font-weight: 600;
    color: #555;
}

.expense-filter select {
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* Samlet total på tværs af alle kategorier (ikke-afregnede) */
.expense-grand-total {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

/* Dark mode tweaks (hvis du bruger theme-dark) */
body.theme-dark .expense-filter label {
    color: #cccccc;
}

body.theme-dark .expense-filter select {
    background: #121212;
    color: #eeeeee;
    border-color: #555555;
}

body.theme-dark .expense-grand-total {
    color: #dddddd;
}

/* ======================= NOTER ============================ */

.note-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.note-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.note-field input,
.note-field select,
.note-field textarea {
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    outline: none;
    resize: vertical;
}

.note-field input:focus,
.note-field select:focus,
.note-field textarea:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 0 1px rgba(13, 71, 161, 0.1);
}

.note-submit {
    margin-top: 4px;
    align-self: flex-start;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: #0d47a1;
    color: #ffffff;
}

/* Listevisning */

.note-group {
    margin-bottom: 16px;
}

.note-group-title {
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.note-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.note-item {
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
}

.note-item:last-child {
    border-bottom: none;
}

.note-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.note-item-left {
    flex: 1;
}

.note-date {
    font-size: 0.8rem;
    color: #777;
}

.note-text {
    font-size: 0.85rem;
    color: #444;
    margin-top: 2px;
}

/* Knapper */

.note-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.note-btn-done,
.note-btn-delete {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px;
    line-height: 1;
}

.note-btn-done:hover,
.note-btn-delete:hover {
    transform: scale(1.1);
}

/* Udførte noter */

.note-item--done {
    opacity: 0.6;
}

.note-item--done .note-text {
    text-decoration: line-through;
}

/* Antal pr. kategori */

.note-group-count {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
}

/* Samlet antal noter (ikke-udførte) */

.note-grand-count {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

/* Dark mode tweaks */

body.theme-dark .note-field label {
    color: #cccccc;
}

body.theme-dark .note-field input,
body.theme-dark .note-field select,
body.theme-dark .note-field textarea {
    background: #121212;
    color: #eeeeee;
    border-color: #555555;
}

body.theme-dark .note-item {
    border-bottom-color: #333333;
}

body.theme-dark .note-group-title,
body.theme-dark .note-group-count,
body.theme-dark .note-grand-count {
    color: #dddddd;
}
.note-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.note-filter label {
    font-weight: 600;
    color: #555;
}

.note-filter input {
    flex: 1;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.85rem;
}

body.theme-dark .note-filter label {
    color: #cccccc;
}

body.theme-dark .note-filter input {
    background: #121212;
    color: #eeeeee;
    border-color: #555555;
}
/* Tilføj note (collapsible) */

.note-add-card {
    text-align: center;
}

.note-add-toggle {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.note-add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #0d47a1;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.note-add-title {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Collapsed: skjul body */
.note-add-card.note-add-collapsed .note-add-body {
    display: none;
}

/* Dark mode tweaks */
body.theme-dark .note-add-icon {
    border-color: #90caf9;
}

/* NOTER FORM LAYOUT */

.note-form {
    display: block; /* ikke flex-column længere */
}

.note-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.note-field-category,
.note-field-custom-category {
    display: inline-block;
    vertical-align: top;
    width: 50%;
    box-sizing: border-box;
}

.note-field-category {
    padding-right: 4px;
}

.note-field-custom-category {
    padding-left: 4px;
}

/* Række til dato + knap */
.note-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.note-field-date {
    flex: 1 1 50%;
}

.note-submit {
    margin-top: 0;
    flex: 0 0 auto;
}

/* COLLAPSIBLE "TILFØJ NOTE" */

.note-add-card {
    text-align: center;
}

.note-add-toggle {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.note-add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #0d47a1;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

/* når åben: skjul cirkel med + */
.note-add-card:not(.note-add-collapsed) .note-add-icon {
    display: none;
}

/* når collapsed: skjul body */
.note-add-card.note-add-collapsed .note-add-body {
    display: none;
}

/* footer med "Skjul"-knap nederst i kortet */
.note-add-footer {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.note-add-hide {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

/* Dark mode tweaks */
body.theme-dark .note-add-icon {
    border-color: #90caf9;
}

/* FORM LAYOUT */

.note-form {
    display: block;
}

.note-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Default: kategori og "egen kategori" er fuld bredde (vertikalt) */
.note-field-category,
.note-field-custom-category {
    width: 100%;
    box-sizing: border-box;
}

/* Kun når der faktisk er custom-kategori (Andet) -> 50/50 på samme linje */
.note-form.note-form--has-custom .note-field-category,
.note-form.note-form--has-custom .note-field-custom-category {
    display: inline-block;
    vertical-align: top;
    width: 50%;
}

.note-form.note-form--has-custom .note-field-category {
    padding-right: 4px;
}

.note-form.note-form--has-custom .note-field-custom-category {
    padding-left: 4px;
}

/* Række til dato + knap */
.note-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.note-field-date {
    flex: 1 1 50%;
}

.note-submit {
    margin-top: 0;
    flex: 0 0 auto;
}

/* COLLAPSIBLE "TILFØJ NOTE" */

.note-add-card.note-add-collapsed {
    display: none;
}

.note-add-footer {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.note-add-hide {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

/* Plus-knap i eget card nederst */

.note-add-toggle-card {
    text-align: center;
}

.note-add-toggle {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.note-add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #0d47a1;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

/* Dark mode tweaks */
body.theme-dark .note-add-icon {
    border-color: #90caf9;
}
.bottombar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 4px;
    z-index: 1000;
}

/* Venstre / højre side omkring CTA */

.bottombar__side {
    display: flex;
    flex: 1;
    align-items: stretch;
    gap: 4px;
}

.bottombar__side--left {
    justify-content: flex-start;
}

.bottombar__side--right {
    justify-content: flex-end;
}

/* CTA i midten */

.bottombar__cta {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #0d47a1;
    color: #ffffff;
    align-self: center;
    white-space: nowrap;
}

/* Menupunkter */

.bottombar__item {
    min-width: 56px;
    padding: 4px 2px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #666;
    gap: 2px;
}

.bottombar__item span.icon {
    font-size: 1.2rem;
}

.bottombar__item.active {
    color: #0d47a1;
}

/* "Vis mere"-menu */

.bottombar__more-menu {
    position: absolute;
    bottom: 60px;
    right: 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 6px 0;
    display: none;
    z-index: 1100;
}

.bottombar__more-menu.open {
    display: block;
}

.bottombar__more-item {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.bottombar__more-item span.icon {
    font-size: 1.1rem;
}
.bottombar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 4px;
    z-index: 1000;
}

/* Venstre / højre side omkring CTA */

.bottombar__side {
    display: flex;
    flex: 1;
    align-items: stretch;
    gap: 4px;
}

.bottombar__side--left {
    justify-content: flex-start;
}

.bottombar__side--right {
    justify-content: flex-end;
}

/* Menupunkter: max 20% af bredden */

.bottombar__item {
    flex: 0 0 20%;
    max-width: 20%;
    min-width: 56px;
    padding: 4px 2px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #666;
    gap: 2px;
}

.bottombar__item span.icon {
    font-size: 1.2rem;
}

.bottombar__item.active {
    color: #0d47a1;
}

/* CTA i midten – kun ikon */

.bottombar__cta {
    border-radius: 50%;
    border: 2px solid #0d47a1;
    width: 48px;
    height: 48px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    background: #0d47a1;
    color: #ffffff;
    cursor: pointer;
    margin: 0 4px;
    padding: 0;
}

/* Når der ikke er CTA for viewet → “blank” knap */
.bottombar__cta--empty {
    background: transparent;
    border-color: transparent;
    color: transparent;
}

/* "Vis mere"-menu */

.bottombar__more-menu {
    position: absolute;
    bottom: 60px;
    right: 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 6px 0;
    display: none;
    z-index: 1100;
}

.bottombar__more-menu.open {
    display: block;
}

.bottombar__more-item {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.bottombar__more-item span.icon {
    font-size: 1.1rem;
}

/* Dark mode tweaks (valgfrit) */
body.theme-dark .bottombar {
    background: #121212;
    border-top-color: rgba(255,255,255,0.1);
}

body.theme-dark .bottombar__item {
    color: #cccccc;
}

body.theme-dark .bottombar__item.active {
    color: #90caf9;
}

body.theme-dark .bottombar__more-menu {
    background: #1e1e1e;
}

body.theme-dark .bottombar__cta {
    border-color: #90caf9;
    background: #90caf9;
    color: #000;
}
