/* =========================================
   VARIÁVEIS DE COR E TIPOGRAFIA
   ========================================= */
:root {
    /* Fundo principal */
    --bg-gradient-start: #eef5fc;
    --bg-gradient-end: #e3edf7;
    
    /* Textos */
    --text-dark: #0c2340;
    --text-grey: #64748b;
    --text-black: #1e293b;
    
    /* Ícones das Categorias */
    --icon-purple: #b95cf4;
    --icon-blue: #2590f1;
    --icon-orange: #f28705;
    --icon-green: #2ecc71;
    --icon-red: #ff4d4d;
    
    /* Componentes */
    --card-bg: #ffffff;
    --widget-bg: #e6f4fd;
    --input-bg: #dbeafe; /* Fundo azulado para inputs */
    --input-border: #bfdbfe;
    
    /* Fontes */
    --font-main: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* =========================================
   RESET E ESTRUTURA BÁSICA
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 2fr 1fr; /* Proporção de aprox 66% / 33% */
    gap: 30px;
    align-items: start;
}

/* =========================================
   COLUNA ESQUERDA (PAINEL PRINCIPAL)
   ========================================= */
.main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-header h1 {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header .icon-header {
    color: #38bdf8; /* Azul claro complementar */
}

.page-header p {
    color: var(--text-grey);
    font-weight: 500;
    margin-top: 5px;
    font-size: 1.05rem;
}

/* --- ACORDEÕES --- */
.accordion-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.accordion-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.accordion-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 0.9rem;
}

.item-title {
    font-weight: 700;
    color: var(--text-black);
    font-size: 0.9rem;
}

.chevron-icon {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Cores dos Ícones */
.bg-purple { background-color: var(--icon-purple); }
.bg-blue   { background-color: var(--icon-blue); }
.bg-orange { background-color: var(--icon-orange); }
.bg-green  { background-color: var(--icon-green); }
.bg-red    { background-color: var(--icon-red); }


/* =========================================
   COLUNA DIREITA (BARRA DE WIDGETS)
   ========================================= */
.widget-container {
    background-color: var(--widget-bg);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-section {
    display: flex;
    flex-direction: column;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-blue { color: #0284c7; }
.icon-green { color: #10b981; }

.widget-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Inputs e Selects */
.custom-select, .custom-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    outline: none;
    appearance: none;
}

.custom-input.readonly {
    background-color: #f1f5f9;
    color: var(--text-dark);
}

.clock-display { text-align: center; margin: 25px 0; }
.clock-display .time { font-size: 2.8rem; font-weight: 800; color: #000; line-height: 1; letter-spacing: -1px; }
.clock-display .date { font-size: 0.9rem; color: var(--text-grey); margin-top: 5px; font-weight: 500; }

.weather-display { text-align: center; }
.weather-display .location-text { font-size: 0.85rem; font-weight: 600; color: var(--text-grey); margin-bottom: 5px; }
.weather-main { display: flex; align-items: center; justify-content: center; gap: 10px; }
.weather-icon { font-size: 2.2rem; color: #94a3b8; }
.temp { font-size: 2.2rem; font-weight: 800; color: #0ea5e9; line-height: 1; }
.weather-desc { font-size: 0.9rem; font-weight: 500; color: var(--text-grey); margin-top: 5px; }

.widget-divider {
    border: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    margin: 30px 0;
}

.converter-group { display: flex; gap: 10px; }
.short-select { width: 85px; text-align: center; padding: 12px 8px; }
.converter-arrow {
    text-align: center;
    color: #94a3b8;
    font-size: 1.2rem;
    margin: 10px 0;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .accordion-list {
        grid-template-columns: 1fr;
    }
}