/* ==========================================================
   FONTES
========================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================
   VARIÁVEIS
========================================================== */

:root {
  --color-background: #05070a;
  --color-panel-alt: rgba(255, 255, 255, 0.045);

  --color-border: #2b3644;
  --color-border-soft: rgba(255, 255, 255, 0.08);
  --color-divider: rgba(255, 255, 255, 0.12);

  --color-primary: #ffc247;
  --color-text: #ffffff;
  --color-secondary: #b9d4ff;
  --color-secondary-light: #d8e6ff;
  --color-description: #d0d8e8;
  --color-muted: #718096;
  --color-other-month: #4f5d70;
  --color-sabbath: #ff9f1c;

  --panel-radius: 18px;
  --panel-gap: 12px;

  --panel-blur: 1px;
  --color-panel: rgba(18,24,33,.62);
  --color-panel-border: rgba(255,255,255,.18);
  --panel-shadow:
  0 12px 30px rgba(0,0,0,.45);
  --background-transition-duration: 2s;
}

/* ==========================================================
   RESET E BASE
========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  cursor:none;
}

body {
  position: relative;
  cursor:none;
  background: var(--color-background);
  color: var(--color-text);

  font-family: "Inter", Arial, sans-serif;

  overflow: hidden;
}

.background-layer {
  position: fixed;
  inset: 0;

  z-index: 0;

  background-color: var(--color-background);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 0;

  transition:
    opacity
    var(--background-transition-duration)
    ease-in-out;

  pointer-events: none;
}

.background-layer-visible {
  opacity: 1;
}


/* ==========================================================
   LAYOUT PRINCIPAL
========================================================== */


.dashboard {
  position: relative;
  z-index: 1;

  width: 100vw;
  height: 100vh;

  padding: 12px;

  display: grid;

.dashboard{

grid-template-columns:2fr 1fr;

grid-template-rows:
repeat(12,minmax(0,1fr));

}

  gap: var(--panel-gap);
}

/* Coluna esquerda */
.main-panel {
  grid-column: 1;
  grid-row: 1 / 9;
}

.weather-panel {
  grid-column: 1;
  grid-row: 9 / 13;
}

/* Coluna direita */
.calendar-panel {
  grid-column: 2;
  grid-row: 1 / 7;
}

.events-panel {
  grid-column: 2;
  grid-row: 7 / 13;
}

.panel {
  min-width: 0;
  min-height: 0;

  background: var(--color-panel);
  border: 1px solid var(--color-panel-border);
  border-radius: var(--panel-radius);

  color: var(--color-secondary);

  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));

  box-shadow: var(--panel-shadow);

  overflow: hidden;
}

/* ==========================================================
   PAINEL PRINCIPAL
========================================================== */

.main-panel {
  padding: 18px 22px;

  display: grid;
  grid-template-rows:
  40px
  1fr;
  text-align: center;
}

.weekday {
  color: var(--color-primary);

  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
}

.date-area {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  align-items: center;

  gap: 12px;
}

.sun-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: var(--color-secondary-light);
  font-size: 20px;
}

.sun-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;

  display: block;
  object-fit: contain;
}

.sun-box strong {
  display: block;
  margin-top: 8px;

  color: var(--color-text);
  font-size: 34px;
  font-weight: 800;
}

.date-center {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.clock-time {
  margin-bottom: 18px;

  color: var(--color-secondary-light);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 2px;
}

.day-number {
  color: var(--color-text);

  font-size: 150px;
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -6px;
}

.month-name {
  margin-top: 22px;

  color: var(--color-primary);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.bible-promise {
  max-width: 420px;
  margin-top: 18px;

  color: var(--color-secondary-light);
  font-size: 22px;
  font-style: italic;
  line-height: 1.3;
}

.promise-text,
.promise-reference {
  display: block;
}

.promise-reference {
  margin-top: 5px;

  color: var(--color-primary);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 700;
}

/* ==========================================================
   CALENDÁRIO
========================================================== */

.calendar-panel {
  padding: 18px 22px;
}

.calendar-panel h2 {
  margin-bottom: 16px;

  color: var(--color-primary);
  text-align: center;
  font-size: 32px;
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, auto);

  gap: 8px;

  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.calendar-weekday,
.calendar-day {
  min-width: 0;
  padding: 5px 0;

  border-radius: 8px;
}

.calendar-weekday {
  color: var(--color-secondary);
}

.calendar-sabbath {
  color: var(--color-sabbath);
}

.calendar-other-month {
  color: var(--color-other-month);
}

.calendar-today {
  background: var(--color-primary);
  color: var(--color-background);

  font-weight: 800;
}

/* ==========================================================
   CLIMA
========================================================== */

.weather-panel {
  padding: 10px 14px;

  display: grid;
  grid-template-rows: auto 1fr auto;

  gap: 5px;
}

.weather-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;

  gap: 14px;
}

.weather-current {
  display: flex;
  align-items: center;

  gap: 12px;
}

.weather-icon {
  width: 58px;
  height: 58px;

  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.weather-temp {
  color: var(--color-text);

  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.weather-desc {
  margin-top: 3px;

  color: var(--color-description);
  font-size: 18px;
}

.weather-details {
  display: flex;
  align-items: center;
  justify-content: space-around;

  gap: 12px;

  color: var(--color-secondary);
  font-size: 16px;
}

.weather-detail {
  display: flex;
  align-items: center;

  gap: 6px;
  white-space: nowrap;
}

.weather-detail-icon {
  width: 23px;
  height: 23px;

  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Gráfico das próximas 10 horas */

.weather-hourly-chart {
  min-height: 0;

  display: flex;
  align-items: stretch;
  justify-content: stretch;

  color: var(--color-muted);
  font-size: 12px;
}

.weather-chart-svg {
  width: 100%;
  height: 100%;
  min-height: 82px;

  display: block;
  overflow: visible;
}

.weather-chart-temperature {
  fill: var(--color-secondary);

  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.weather-chart-hour {
  fill: var(--color-muted);

  font-family: "Inter", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
}

/* Previsão dos próximos 7 dias */

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(7, 1fr);

  gap: 4px;

  padding-top: 5px;

  border-top: 1px solid var(--color-divider);
}

.weather-day {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 2px;

  text-align: center;
}

.weather-day-name {
  color: var(--color-primary);

  font-size: 11px;
  font-weight: 800;
}

.weather-day-icon {
  width: 25px;
  height: 25px;

  display: block;
  object-fit: contain;
}

.weather-day-temp {
  display: flex;
  align-items: baseline;

  gap: 4px;

  font-size: 12px;
  line-height: 1;
}

.weather-day-temp strong {
  color: #ff7b72;   /* máxima */
  font-weight: 800;
}

.weather-day-temp span {
  color: #79c0ff;   /* mínima */
  font-size: 10px;
  font-weight: 700;
}

/* ==========================================================
   EVENTOS
========================================================== */

.events-panel {
  padding: 10px 14px;
}

.events-panel h2 {
  margin-bottom: 8px;

  color: var(--color-primary);
  font-size: 22px;
  font-weight: 800;
}

.events-list {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

.event-card {
  padding: 6px 9px;

  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;

  gap: 10px;

  background: var(--color-panel-alt);
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
}

.event-date {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

.event-info {
  min-width: 0;
}

.event-info strong {
  display: block;

  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.05;
}

.event-info span {
  display: block;
  margin-top: 1px;

  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.05;
}

/* ==========================================================
   RESOLUÇÃO-ALVO DO NETBOOK: 1024 × 600
========================================================== */

@media (max-width: 1100px), (max-height: 650px) {
  .dashboard {
    padding: 7px;
    gap: 7px;

    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(12, minmax(0, 1fr));
  }

  .panel {
    border-radius: 12px;
  }

  .main-panel {
    padding: 10px 14px;
    grid-template-rows: 32px 1fr;
  }

  .weekday {
    font-size: 21px;
  }

  .clock-time {
    margin-bottom: 8px;
    font-size: 28px;
  }

  .day-number {
    font-size: 100px;
  }

  .month-name {
    margin-top: 12px;
    font-size: 31px;
  }

  .bible-promise {
    max-width: 300px;
    margin-top: 10px;

    font-size: 15px;
  }

  .sun-box {
    font-size: 14px;
  }

  .sun-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
  }

  .sun-box strong {
    margin-top: 4px;
    font-size: 23px;
  }

  .calendar-panel {
    padding: 10px 13px;
  }

  .calendar-panel h2 {
    margin-bottom: 8px;
    font-size: 22px;
  }

  .calendar-grid {
    gap: 3px;
    font-size: 16px;
  }

  .calendar-weekday,
  .calendar-day {
    padding: 3px 0;
  }

  .weather-panel {
    padding: 7px 9px;
    gap: 3px;
  }

  .weather-summary {
    grid-template-columns: 175px 1fr;
    gap: 8px;
  }

  .weather-current {
    gap: 7px;
  }

  .weather-icon {
    width: 42px;
    height: 42px;
  }

  .weather-temp {
    font-size: 32px;
  }

  .weather-desc {
    margin-top: 2px;
    font-size: 13px;
  }

  .weather-details {
    gap: 6px;
    font-size: 11px;
  }

  .weather-detail {
    gap: 3px;
  }

  .weather-detail-icon {
    width: 16px;
    height: 16px;
  }

  .weather-chart-svg {
    min-height: 72px;
  }

  .weather-chart-temperature {
    font-size: 11px;
  }

  .weather-chart-hour {
    font-size: 9px;
  }

  .weather-forecast {
    gap: 2px;
    padding-top: 3px;
  }

  .weather-day {
    gap: 1px;
  }

  .weather-day-name {
    font-size: 9px;
  }

  .weather-day-icon {
    width: 19px;
    height: 19px;
  }

  .weather-day-temp {
    gap: 2px;
    font-size: 10px;
  }

  .weather-day-temp span {
    font-size: 8px;
  }

  .events-panel {
    padding: 7px 9px;
  }

  .events-panel h2 {
    margin-bottom: 5px;
    font-size: 16px;
  }

  .events-list {
    gap: 4px;
  }

  .event-card {
    padding: 4px 6px;

    grid-template-columns: 56px 1fr;

    gap: 6px;
  }

  .event-date {
    font-size: 10px;
  }

  .event-info strong {
    font-size: 12px;
  }

  .event-info span {
    font-size: 9px;
  }
}