/* style.css */
:root {
    --primary: #0066cc;
    --primary-dark: #004c99;
    --success: #28a745;
    --danger: #dc3545;
    --gray-light: #f4f4f4;
    --gray-text: #666;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }

body {
    background-color: #eef2f5;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Container Mobile */
.mobile-container {
    background-color: var(--white);
    width: 100%;
    max-width: 480px; /* Simula tela de celular */
    min-height: 100vh;
    padding: 20px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* Header & Nav */
header { margin-bottom: 20px; }
h1 { font-size: 1.5rem; color: #333; margin-bottom: 5px; }
h2 { font-size: 1.2rem; color: #333; margin-bottom: 10px; }
p { color: var(--gray-text); font-size: 0.95rem; line-height: 1.4; }

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Forms & Inputs */
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 500; color: #444; }
input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
}
input[readonly] { background-color: #eee; color: #888; }

/* Buttons */
.btn {
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: 0.2s;
}
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-secondary { background-color: transparent; color: var(--gray-text); border: 1px solid #ddd; width: auto; padding: 8px 15px; font-size: 0.9rem;}
.btn-success { background-color: var(--success); color: white; }
.btn-outline { background-color: white; border: 1px solid var(--primary); color: var(--primary); margin-top: 10px; }

/* Cards */
.card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}
.card.completed { border-left: 5px solid var(--success); }
.card-header { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center;}
.status-indicator { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.status-red { background-color: var(--danger); }
.status-green { background-color: var(--success); }

/* Progress Bar */
.progress-container {
    background-color: #eee;
    border-radius: 20px;
    height: 10px;
    width: 100%;
    margin-bottom: 25px;
    overflow: hidden;
}
.progress-bar {
    background-color: var(--success);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-end; /* Sheet style on mobile */
}
.modal.active { display: flex; }
.modal-content {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease;
}
.modal-actions { display: grid; gap: 10px; margin-top: 20px; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Animation Overlay */
#celebration-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(40, 167, 69, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
.confetti { font-size: 3rem; animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Helpers */
.hidden { display: none; }
.text-center { text-align: center; }