:root {
    --primary: #6B4EE6;
    --primary-dark: #4A32B3;
    --accent: #FFD700;
    --bg-dark: #0F0A1E;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #FFFFFF;
    --text-muted: #B0A9C9;
    --success: #00E676;
    --danger: #FF5252;
    --nav-bg: rgba(15, 10, 30, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glass {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

h1, h2, h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input, select, textarea {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 78, 230, 0.4);
}

/* Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
}

.bottom-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.bottom-nav a.active {
    color: var(--accent);
}

.bottom-nav i {
    font-size: 1.4rem;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.book-card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
}

.book-card:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent);
}

.book-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.book-progress {
    font-size: 0.65rem;
    color: var(--accent);
    margin-top: 4px;
}

/* Chapter View */
.player-container {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.bible-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-main);
    padding: 20px;
}

.verse {
    margin-bottom: 12px;
}

.verse-num {
    color: var(--accent);
    font-weight: 700;
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Ranking */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.rank-pos {
    width: 30px;
    font-weight: 800;
    color: var(--accent);
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-weight: 600;
}

.rank-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.rank-progress-fill {
    height: 100%;
    background: var(--success);
    transition: width 0.5s ease-out;
}

.rank-percent {
    font-size: 0.8rem;
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Utility */
.alert {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    margin-bottom: 15px;
}

/* Settings Toggles */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.setting-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.setting-info p {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

