/* --- Base & Next-Gen Visuals --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0D1117;
    /* GitHub dark mode color */
    color: #E6EDF3;
    overflow: hidden;
    /* Hide scrollbars from the body */
}

#app-container {
    position: relative;
    z-index: 10;
    overflow-y: auto;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* --- Surreal Animated Background --- */
#background-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    transition: transform 0.5s ease-out;
}

.blob1 {
    background: rgba(45, 155, 240, 0.3);
    /* Blue */
    width: 400px;
    height: 400px;
    animation: move 20s infinite alternate;
}

.blob2 {
    background: rgba(245, 121, 80, 0.4);
    /* Orange */
    width: 300px;
    height: 300px;
    animation: move 25s infinite alternate-reverse;
    animation-delay: -5s;
}

.blob3 {
    background: rgba(34, 197, 94, 0.3);
    /* Green */
    width: 350px;
    height: 350px;
    animation: move 30s infinite alternate;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(-10vw, -20vh) rotate(-90deg) scale(0.8);
    }

    to {
        transform: translate(60vw, 40vh) rotate(90deg) scale(1.2);
    }
}

/* --- Glassmorphism Effect --- */
.glass-card {
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Custom Transitions & Animations --- */
.task-card,
.help-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-card:hover,
.help-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Estilos adicionais para a página de documentação para melhorar a legibilidade */
.doc-content h2 {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    margin-bottom: 1.5rem;
    /* mb-6 */
    padding-bottom: 0.75rem;
    /* pb-3 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-content h3 {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 600;
    margin-top: 2.5rem;
    /* mt-10 */
    margin-bottom: 1rem;
    /* mb-4 */
}

.doc-content p {
    line-height: 1.75;
    /* leading-loose */
    color: #d1d5db;
    /* text-gray-300 */
    margin-bottom: 1rem;
}

.doc-content strong {
    color: #f97316;
    /* text-orange-500 */
    font-weight: 600;
}

.doc-content blockquote {
    border-left-width: 4px;
    border-color: #f97316;
    /* orange-500 */
    padding-left: 1rem;
    font-style: italic;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Modal Styles --- */
#help-modal .glass-card {
    /* Ensure modal content is above the backdrop */
    z-index: 60;
}

/* --- Performance Optimization for Mobile --- */
@media (max-width: 768px) {
    .blob {
        filter: blur(60px);
        /* Reduce blur intensity */
    }

    .blob1,
    .blob2,
    .blob3 {
        animation-duration: 45s;
        /* Slow down animation */
    }
}