/* =========================================================
   CUSTOMIZAÇÃO DE CORES E FONTES
========================================================= */
:root {
    --clock-color: #00ffff;           
    --clock-glow: #00ffff; 
    --accent-color: #ADFF2F;          
    --holiday-color: #ff8c00;         
    --text-color: #ffffff;
    --panel-opacity: 0.55;
    --panel-bg: rgba(0, 0, 0, var(--panel-opacity));  
    --clock-size: 17em;
    --clock-font: 'Segoe UI', Roboto, Arial, sans-serif;
    --show-seconds: inline-block; 
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #000;
    color: var(--text-color);
    margin: 0; padding: 0;
    width: 100vw; height: 100vh;
    overflow: hidden;
    display: flex; justify-content: center; align-items: center;
}

/* =========================================================
   FUNDOS
========================================================= */
#background-video {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2; object-fit: cover; opacity: 0.8;
}

#background-image {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    transition: background-image 1.5s ease-in-out;
    filter: brightness(0.6);
    display: none; 
}

/* =========================================================
   PAINÉIS
========================================================= */
#main-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr; 
    grid-template-rows: 1fr 140px;    
    gap: 15px;
    width: 98vw; height: 96vh;
    transition: transform 2s ease-in-out; 
}

.panel {
    background-color: var(--panel-bg);
    border-radius: 20px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease;
}

/* SIDEBAR */
.sidebar { grid-column: 1; grid-row: 1; display: grid; grid-template-rows: auto 1fr; gap: 15px; }
.calendar-panel { padding: 15px; }
.calendar-header { text-align: center; font-size: 1.6em; font-weight: bold; color: var(--accent-color); margin-bottom: 10px; text-transform: uppercase; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 0.9em; }
.day-name { color: #ffaa00; font-weight: bold; padding-bottom: 5px; }
.day-number { padding: 8px 0; background: rgba(255,255,255,0.05); border-radius: 5px; }
.day-number.today { background: var(--accent-color); color: #000; font-weight: bold; box-shadow: 0 0 10px var(--accent-color); }
.day-number.holiday { color: var(--holiday-color); font-weight: bold; border: 1px solid var(--holiday-color); }

.verse-panel { padding: 25px; justify-content: center; text-align: center; }
#bible-verse { font-size: 1.7em; font-style: italic; line-height: 1.3; transition: opacity 1s; }
#verse-reference { margin-top: 12px; font-size: 1.3em; color: var(--accent-color); font-weight: bold; }

/* RELÓGIO E ALERTAS */
.clock-panel { grid-column: 2; grid-row: 1; justify-content: center; align-items: center; text-align: center; position: relative; }
#greeting-msg { font-size: 2.5em; font-weight: bold; color: var(--accent-color); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px; }

#weather-alerts { background-color: rgba(255, 0, 0, 0.7); color: white; padding: 5px 20px; border-radius: 20px; font-weight: bold; font-size: 1.2em; display: none; margin-bottom: 15px; border: 2px solid #fff; box-shadow: 0 0 15px rgba(255,0,0,0.5); }

.time-container { display: flex; align-items: baseline; justify-content: center; }
#current-time { font-family: var(--clock-font); font-size: var(--clock-size); font-weight: 900; color: var(--clock-color); line-height: 0.8; letter-spacing: -5px; text-shadow: 0 0 30px var(--clock-glow); margin: 0; }
.blink { animation: blinker 1s step-start infinite; }
@keyframes blinker { 50% { opacity: 0; } }
#seconds { font-family: var(--clock-font); font-size: 2.5em; color: var(--clock-color); margin-left: 10px; opacity: 0.8; display: var(--show-seconds); text-shadow: 0 0 15px var(--clock-glow); }
#current-date { font-size: 3.5em; margin-top: 15px; color: var(--accent-color); text-transform: uppercase; font-weight: 300; }
#holiday-today { font-size: 2.2em; color: var(--holiday-color); margin-top: 15px; font-weight: bold; text-transform: uppercase; min-height: 1.2em; }

/* TOCADOR DE HINOS EMBUTIDO */
.inline-player { background: rgba(0, 0, 0, 0.3); padding: 12px 25px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; display: inline-block; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.player-title { font-size: 1em; color: #ffaa00; font-weight: bold; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.player-controls { display: flex; justify-content: center; gap: 15px; }
.player-btn { background: #333; color: white; border: 1px solid #555; padding: 10px 20px; border-radius: 10px; font-size: 1.3em; cursor: pointer; transition: 0.2s; }
.player-btn:hover { background: #555; }
.play-btn { background: var(--accent-color); color: #000; border: none; font-weight: bold; }
.play-btn:hover { filter: brightness(1.2); background: var(--accent-color); }

/* CLIMA */
.weather-panel { grid-column: 1 / span 2; grid-row: 2; padding: 10px; overflow: hidden; justify-content: center; }
.weather-widget-container { width: 100%; height: 100%; }

/* =========================================================
   MENUS E MODAIS
========================================================= */
#top-controls { position: fixed; top: 15px; right: 15px; z-index: 100; display: flex; gap: 15px; }
.control-icon { opacity: 0.4; cursor: pointer; transition: opacity 0.3s; background: rgba(0,0,0,0.4); padding: 8px; border-radius: 50%; display: flex; }
.control-icon:hover { opacity: 1; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.8); z-index: 200; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.settings-content { background-color: #222; border: 2px solid var(--accent-color); padding: 30px; border-radius: 15px; width: 420px; color: white; box-shadow: 0 15px 40px rgba(0,0,0,0.8); }
.settings-content h2 { margin-top: 0; border-bottom: 1px solid #444; padding-bottom: 10px; color: var(--accent-color); }
.setting-row { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.setting-row label { font-size: 1.1em; }
.setting-row input[type="color"] { background: none; border: none; cursor: pointer; height: 35px; width: 50px; }
.setting-row select, .setting-row input[type="range"] { padding: 5px; background: #333; color: white; border: 1px solid #555; border-radius: 5px; font-size: 1em;}
.modal-buttons { margin-top: 25px; display: flex; justify-content: space-between; gap: 15px; }
.modal-buttons button { flex: 1; padding: 12px; font-size: 1.1em; font-weight: bold; cursor: pointer; border: none; border-radius: 5px; transition: 0.2s; }
.btn-cancel { background-color: #555; color: white; }
.btn-save { background-color: var(--accent-color); color: #000; }
.modal-buttons button:hover { filter: brightness(1.2); }

/* ESTILOS DO TIMER */
#timer-display { font-size: 5em; font-weight: bold; margin: 20px 0; color: white; text-shadow: 0 0 20px rgba(255,255,255,0.3); font-family: 'Courier New', Courier, monospace; }
.timer-presets { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 25px; }
.timer-presets button { background: #333; color: white; border: 1px solid #555; padding: 10px 15px; border-radius: 8px; font-size: 1.1em; cursor: pointer; font-weight: bold; transition: 0.2s; }
.timer-presets button:hover { background: var(--accent-color); color: #000; border-color: var(--accent-color); }