/*================================================================================
  KronosSlave.css – Widget Cronômetro “Escravo”
  Versão: 1.1 (limpo e comentado)
================================================================================*/

/*-------------------------------------------
1) RESET & BOX-SIZING
-------------------------------------------*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*-------------------------------------------
2) TIPOGRAFIA
-------------------------------------------*/
body {
  font-family: 'Roboto', sans-serif;
}

/*-------------------------------------------
3) WIDGET PRINCIPAL
-------------------------------------------*/
#kronos-widget {
  position: fixed;
  bottom: 1.25rem;        /* 20px */
  right: 1.25rem;
  width: 220px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: #5cff00;
  border-radius: 8px;
  z-index: 1000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Cabeçalho */
#kronos-header {
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

/* Temporizador */
#timer {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Alerta de tempo */
#alertModal {
  text-align: center;
  font-weight: bold;
}

/*-------------------------------------------
4) PROGRESS BAR
-------------------------------------------*/
#kronos-widget .progress {
  height: 12px;
  margin-bottom: 0.7rem;
}
#kronos-widget .progress-bar {
  background-color: #2e75c6;
}

/*-------------------------------------------
5) BOTÕES INTERNOS
-------------------------------------------*/
/* Fechar (×) */
.btn-collapse {
  position: absolute;
  top: 0.25rem;   /* 4px */
  right: 0.25rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Expand (✔) */
#btnExpand {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: #5cff00;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  display: none;  /* revelado via JS */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/*-------------------------------------------
6) CLASSES DE CONTROLE (via JS)
-------------------------------------------*/
.collapsed {
  opacity: 0 !important;
  visibility: hidden !important;
}

.expanded {
  opacity: 1 !important;
  visibility: visible !important;
}

/* =========================================
   CRONÔMETRO – Aumentar tamanho da fonte do timer
========================================= */
#kronos-widget #timer {
  font-size: 2rem;   /* Ajuste este valor conforme necessidade (ex.: 1.5rem, 2rem) */
  line-height: 1rem;     /* Para manter o espaçamento vertical equilibrado */
}


body.dragging #kronos-widget {
  bottom: auto !important;
  right:  auto !important;
  top:    auto !important;
  left:   auto !important;
}
