/* style.css - V4.1 Clean Dark Theme */

:root {
    --bg-color: #121214;
    /* Fundo principal bem escuro (quase preto) */
    --surface-color: #202024;
    /* Cards */
    --primary-color: #8257e6;
    /* Roxo principal (Rocketseat style) */
    --primary-light: #996dff;
    --text-primary: #e1e1e6;
    --text-secondary: #a8a8b3;
    --border-color: #323238;
    --success-color: #04d361;
    --danger-color: #e83f5b;
    --gradient-hero: linear-gradient(90deg, #8257e6 0%, #290861 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 80px;
    /* Espaço para nav bar */
}

/* --- UTILS --- */
button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 0.2s, opacity 0.2s;
}

button:active {
    transform: scale(0.96);
}

/* --- LANDING HERO (PREMIUM) --- */
.landing-hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    /* Dark Gradient Background */
    background: linear-gradient(135deg, #1e1e2e 0%, #0f0f15 100%);
}

/* Animated Blobs */
.landing-hero::before,
.landing-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* More blur for softer glow */
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    animation: blobFloat 8s infinite alternate;
}

.landing-hero::before {
    width: 300px;
    height: 300px;
    background: #6c5ce7;
    top: -50px;
    left: -50px;
}

.landing-hero::after {
    width: 250px;
    height: 250px;
    background: #00cec9;
    bottom: -50px;
    right: -50px;
    animation-delay: -4s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 40px) scale(1.1);
    }
}

.hero-content {
    z-index: 10;
    max-width: 600px;
    position: relative;
    /* Glass Effect Dark */
    background: var(--glass-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-main);
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
    position: relative;
    z-index: 20;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.3);
    filter: brightness(1.1);
}

/* --- AUTH BOX --- */
.auth-box {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    border: 1px solid var(--glass-border);
}

.input-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.input-group i {
    color: var(--primary-color);
    margin-right: 12px;
    opacity: 1;
}

.input-group input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    outline: none;
    color: var(--text-main);
}

/* --- CONTAINERS (Dashboard/App) --- */
#dashboard-container,
.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    animation: fadeIn 0.4s ease-out;
}

/* --- CARDS & LISTS --- */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.list-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.list-card:active {
    transform: scale(0.97);
}

/* --- LIST ITEMS --- */
.list-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    transition: transform 0.2s;
}

/* --- BOTTOM NAV --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px 25px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-top: 1px solid var(--glass-border);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #636e72;
    /* Slightly lighter for dark mode visibility */
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.fab-container {
    position: relative;
    top: -30px;
}

.fab-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    transition: transform 0.2s;
}

.fab-btn:active {
    transform: scale(0.9);
}

/* --- MODALS --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #252536;
    /* Dark surface */
    width: 100%;
    max-width: 400px;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-main);
}

.totals-pill {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3436;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 90;
    width: 90%;
    max-width: 350px;
    justify-content: space-between;
    font-weight: 500;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}