/* Custom Styles and Animations */

:root {
    --app-bg: #0f111a;
    --app-surface: #1e2130;
    --app-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    background: #050505;
}

body {
    margin: 0;
    padding: 0;
    background: #050505;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
}

/* El contenedor usa position fixed para anclarse exactamente al viewport en móvil */
.app-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background-color: var(--app-bg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--app-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* En escritorio se ve como pantalla de celular */
@media (min-width: 480px) {
    .app-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        height: auto;
        max-height: 90vh;
        max-height: 90dvh;
        aspect-ratio: 9 / 16;
        border-radius: 32px;
        margin: auto;
    }
}

/* Hide Scrollbar but keep functionality */
.scrollable {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 16px;
}
.scrollable::-webkit-scrollbar {
    display: none;
}

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

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

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite ease-in-out;
}

/* Custom Inputs */
.custom-input {
    background-color: var(--app-surface);
    border: 1px solid var(--app-border);
    color: white;
    transition: all 0.2s ease;
}

.custom-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.option-card {
    background-color: var(--app-surface);
    border: 1px solid var(--app-border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.option-card.selected {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.option-card:hover:not(.selected) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Progress bar animation */
@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.progress-bar-fill {
    animation: progress 45s linear forwards;
}
