body {
    font-family: system-ui;
    margin: 0;
    background: #f5f5f5;
    color: #222;
    transition: background 0.3s ease, color 0.3s ease;
}

/* FLOATING TOPBAR */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #333;
    color: white;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle,
.builder-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
}

.builder-toggle {
    right: 45px;
}

.controls {
    position: sticky;
    top: 48px;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #fafafa;
    transition: background 0.3s ease, color 0.3s ease;
}

#content {
    padding: 10px;
    max-width: 700px;
    margin: auto;
}

.verse {
    background: white;
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.verse.active {
    border-left: 4px solid orange;
}

.verse.bookmarked {
    border-left: 4px solid blue;
}

.nav {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
    transition: background 0.3s ease, color 0.3s ease;
}

/* THEME BUILDER */
.theme-builder {
    position: fixed;
    right: 10px;
    bottom: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    max-width: 220px;
    z-index: 1100;
    transition: opacity 0.3s ease;
}

.theme-builder.hidden {
    display: none;
}

/* THEMES */
body.theme-clear { background: #ffffff; color: #222; }
body.theme-blue { background: #e7f1ff; color: #222; }

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

body.theme-dark .controls,
body.theme-dark .nav {
    background: #1e1e1e;
    color: #fff;
}

body.theme-custom {
    background: var(--custom-bg);
    color: var(--custom-text);
}

body.theme-custom .verse {
    background: var(--custom-card);
}
