html {
    scroll-behavior: smooth;
}

body {
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

.text-text-body {
    color: #333333;
}

.gradient-text {
    background: linear-gradient(to right, #4f46e5, #d4347f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.gradient-bg {
    background: linear-gradient(to right, #6366f1, #d4347f);
}

.gradient-bg-vibrant {
    background: linear-gradient(to right, #4f46e5, #d946ef);
}

.phone-mockup {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    max-width: 340px; /* Max size for the mockup */
    width: 100%; /* Ensure it scales down on smaller screens */
    border: 12px solid #1a1a1a; /* Fluid border relative to width (~12px at max-width) */
    border-radius: 48px; /* Fluid border-radius relative to width (~48px at max-width) */
    aspect-ratio: 1 / 2; /* Maintain phone aspect ratio */
    z-index: 10;
    background: #000;
}

.step-text {
    width: 100%;
    padding-left: 3rem; /* md:pl-12 */
    padding-right: 3rem; /* px-6 on parent */
    margin-bottom: 2rem; /* Added spacing between steps */
}

@media (min-width: 768px) {
    .step-text {
        padding-left: 3rem;
        padding-right: 0;
    }
}


/* Default style for all books in the SVG */
.vibe-option svg g path {
    fill: #f3f4f6; /* light gray fill for "empty" books */
    stroke: #9ca3af; /* gray-400 for outline */
    stroke-width: 0.5;
    transition: fill 0.3s ease-in-out, stroke 0.3s ease-in-out;
}

/* Style for active (filled) books */
.vibe-option svg g.active-book path {
    fill: url(#book-gradient); /* Thematic brown for active books */
    stroke: url(#book-gradient); /* Matching stroke */
}

.vibe-option .text-xs {
    color: #6b7280; /* gray-500 */
    transition: color 0.3s ease-in-out;
}

.vibe-option.active .text-xs {
    color: #000000;
}

.vibe-option.group:hover .text-xs {
    color: #000000;
}

.gradient-border-vibe {
    border: 2px solid transparent; /* Adjust border width as needed */
    background-clip: padding-box, border-box;
    background-image: linear-gradient(white, white), linear-gradient(to right, #6366f1, #a855f7, #ec4899);
    border-radius: 0.75rem; /* Corresponds to rounded-xl */
}


::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
}

#language-menu {
    animation: fadeIn 0.2s ease-in-out;
}

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

#language-toggle .material-symbols-outlined:last-child {
    transition: transform 0.3s ease;
}

#language-toggle:hover .material-symbols-outlined:last-child {
    transform: translateY(2px);
}

.lang-btn:active {
    background-color: #f3f4f6 !important;
}

.logo-font {
    font-family: 'Syncopate', sans-serif;
}

/* Fine-tuning for smaller screens */
@media (max-width: 640px) {
    .phone-mockup .text-xs { /* Status bar text */
        font-size: 0.625rem; /* ~10px */
    }

    .phone-mockup .material-symbols-outlined { /* Status bar icons */
        font-size: 12px !important;
    }
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

.custom-range:focus {
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: linear-gradient(to right, #6366f1, #d4347f);
    cursor: pointer;
    margin-top: -12px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
    border: 2px solid white;
}

.custom-range::-moz-range-thumb {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: linear-gradient(to right, #6366f1, #d4347f);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.custom-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 99px;
}

.custom-range::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 99px;
}

/* Error message styles */
.error-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button loading state */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}