/* =========================================
   1. VARIÁVEIS E BASE
   ========================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-main);
    margin: 0;
    padding: 40px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================================
   2. COMPONENTES GERAIS (Botões e Links)
   ========================================= */
.btn-icon {
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.15);
}

/* =========================================
   3. SEÇÃO: MINHA JORNADA HOJE (NOVO)
   ========================================= */
.jornada-hoje {
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.card-hoje {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    background: #fff;
}

.card-hoje:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.card-hoje.concluido {
    background-color: var(--success-light);
    border-color: var(--success) !important;
    opacity: 0.8;
}

.card-hoje.concluido span {
    text-decoration: line-through;
    color: #065f46;
}

/* =========================================
   4. SEÇÃO: OBJETIVOS SMART
   ========================================= */
.objetivos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card-objetivo {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255,255,255,0.7);
    transition: transform 0.2s;
}

.card-objetivo:hover { transform: translateY(-5px); }

.progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    transition: width 0.5s ease-out;
}

/* =========================================
   5. SEÇÃO: CALENDÁRIO
   ========================================= */
.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    background: #cbd5e1;
    padding: 10px;
    border-radius: 12px;
}

.dia-calendario {
    border: 1px solid #e2e8f0;
    min-height: 110px;
    padding: 8px;
    background: white;
    border-radius: 8px;
}

/* Itens de Atividade dentro do Calendário */
.atividade-item {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.atividade-item:hover { transform: scale(1.02); }

/* Estados Especiais da Atividade */
.atividade-item.atv-concluida {
    background: var(--success-light) !important;
    border-left-color: var(--success) !important;
    text-decoration: line-through;
    opacity: 0.7;
    color: #065f46;
}

.atividade-item.conflito {
    background-color: var(--danger-light) !important;
    border-left: 4px solid var(--danger) !important;
    color: #991b1b !important;
}

.btn-check-unificado {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
}

/* =========================================
   6. MODAIS E FORMULÁRIOS
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    font-family: inherit;
}

/* Grade de Objetivos (Cards) */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.goal-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.goal-description {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-main);
    min-height: 60px;
}


.goal-footer {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
