* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --clover-dark: #1B5E37;
    --clover-lime: #9ACD32;
    --clover-mid: #3D8B4F;
}

/* Fonts */
body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #F5F5DC; /* Light green background */
}

h1, h2, h3, h4, h5, h6,
.text-2xl,
.text-xl,
.font-bold,
nav h1,
button {
    font-family: 'Cinzel', Georgia, serif;
}

/* Page background - light mode */
.bg-gray-50 {
    background-color: #C8D5C8 !important;
}
.bg-white {
    background-color: #D4DFD4 !important;
}

/* Dark mode stays unchanged */
.dark .bg-gray-50 {
    background-color: #111827 !important;
}

.dark .bg-white {
    background-color: #1F2937 !important;
}

.dark body {
    background-color: #111827;
}

.dark-mode-toggle {
    width: 48px;
    height: 24px;
    background-color: var(--clover-mid);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dark .dark-mode-toggle {
    background-color: #3B82F6;
}

.dark-mode-toggle-circle {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.dark .dark-mode-toggle-circle {
    transform: translateX(24px);
}

/* Spinner - Light theme green */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(27, 94, 55, 0.2);
    border-top-color: var(--clover-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Spinner - Dark theme stays blue */
.dark .spinner {
    border-color: rgba(96, 165, 250, 0.2);
    border-top-color: #60A5FA;
}

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

.loading-dot {
    width: 8px;
    height: 8px;
    background-color: #9CA3AF;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-dot.completed {
    width: 20px;
    height: 20px;
    background-color: var(--clover-mid);
    animation: none;
}

.dark .loading-dot.completed {
    background-color: #10B981;
}

.loading-dot.completed::before {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===== LIGHT THEME OVERRIDES (green) ===== */

/* Buttons */
.bg-blue-600 {
    background-color: var(--clover-dark) !important;
}
.hover\:bg-blue-700:hover {
    background-color: #145029 !important;
}

/* Text */
.text-blue-600 {
    color: var(--clover-dark) !important;
}

/* Beta badge */
.bg-blue-100 {
    background-color: rgba(154, 205, 50, 0.3) !important;
}
.text-blue-800 {
    color: var(--clover-dark) !important;
}

/* Focus rings */
.focus\:ring-blue-500:focus {
    --tw-ring-color: var(--clover-mid) !important;
}

/* ===== DARK THEME STAYS BLUE (no changes) ===== */
.dark .bg-blue-600 {
    background-color: #3B82F6 !important;
}
.dark .bg-blue-500 {
    background-color: #3B82F6 !important;
}
.dark .hover\:bg-blue-700:hover {
    background-color: #2563EB !important;
}
.dark .hover\:bg-blue-600:hover {
    background-color: #2563EB !important;
}
.dark .text-blue-600 {
    color: #3B82F6 !important;
}
.dark .text-blue-400 {
    color: #60A5FA !important;
}
.dark .bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}
.dark .bg-blue-900 {
    background-color: rgba(30, 58, 138, 0.5) !important;
}
.dark .text-blue-800 {
    color: #1E40AF !important;
}
.dark .text-blue-200 {
    color: #BFDBFE !important;
}

