/* ===================================================
   1. RESET
=================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* ===================================================
     2. TOKENS (Design System Variables)
  =================================================== */
  :root {
    --color-primary: #000;
    --color-text-default: #2B2D2C;
    --color-border: #C9C9C9;
    --color-result-bg: #BEF0C7;
    --color-result-text: #083B34;
    --color-result-label: #105A00;
  
    --radius-md: 16px;
    --radius-lg: 24px;
  }
  
  /* ===================================================
     3. BASE
  =================================================== */
  body {
    font-family: 'Nunito Sans', sans-serif;
    line-height: 140%;
    background-color: #E9ECEB; /* cor do restante do site */
    background-image: url('../img/bg-header.png');
    background-repeat: repeat-x;
    background-position: top center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .main-content {
  flex: 1;
}
  
  /* ===================================================
     4. LAYOUT GLOBAL
  =================================================== */
  .container {
    margin: 0 auto;
    padding: 8px 20px 0 20px;

  }
  
  .site-header {
  padding: 0 0 8px 0;
  }
  

.header-inner {
  padding: 0 24px 0 8px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}


/* Logo */

.header-logo {
  display: block;
  height: auto;
}

/* Botão menu */

.header-menu-button {
  width: 48px;
  height: 48px;

  border: none;
  background: transparent;
  padding: 8px 0 0 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.header-menu-button img {
  width: 92px;
  height: 92px;
}

.header-text {
  margin-top: 16px;
  margin-left: 32px;
  font-size: 12px;
  color: #B2C7B5;
  line-height: 120%;
}

/* ===================================================
   FOOTER
=================================================== */

.helper-footer {
  position: relative;
  margin-top: 16px;
}

/* Conteúdo alinhado com o botão */
.helper-content {
  max-width: 390px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0; /* respeita alinhamento do container pai */
  padding-top: 24px;
  position: relative;
  z-index: 2;
}

/* Imagem do cachorro */

.helper-image {
  width: 64px;
  height: 65px;
  position: relative;
  top: 16px;
  flex-shrink: 0;
}

/* Texto */

.helper-text {
  margin-top:16px;
  display: flex;
  flex-direction: column;
  line-height: 120%;
}

.helper-description {
  font-size: 14px;
  color: #6B6B6B;
}

/* Barras */

.helper-bars {
  margin-top: 6px; /* puxa para ficar sob o cachorro */
}

.helper-bar {
  width: 100%;
}

.helper-bar-gray {
  height: 4px;
  background: #D9D9D9;
}

.helper-bar-green {
  height: 6px;
  background: #0F3F38;
}

/* ===================================================
   AD SLOT (Advertising container)
=================================================== */

.ad-slot {
  margin: 16px 0 24px 0;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
}

.ad-preview {
 

  height: auto;

  border-radius: 12px;

  display: block;
}
  
  /* ===================================================
     5. COMPONENTES (REUTILIZÁVEIS)
  =================================================== */
  
  /* Dropdown */
  .select-wrapper {
  position: relative;
  width: 100%;
}

.select {
  width: 100%;

  padding: 8px 40px 8px 40px; /* espaço igual nos dois lados */

  border-radius: 16px;
  border: none;

  background-color: rgba(255, 255, 255, 0.8);

  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: #405C58;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;

  text-align: center;           /* centraliza o texto */
  text-align-last: center;      /* necessário para alguns navegadores */

  background-image: image-set(
    url("../img/icon_down.png") 1x,
    url("../img/icon_down@2x.png") 2x
  );

  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 12px;
}
  
  /* Título */
 .title {
  display: inline-flex;
  align-items: center;
  gap: 24px;

  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin: 12px 0 24px 0;
  line-height: 110%;
}

.title-icon {
  flex-shrink: 0;
}
  
  .title-text span {
    color: #1c8c5f;
  }
  
  /* Card */
  .card {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius-lg);
  }
  
  /* Campo padrão */
  .field-group {
    display: flex;
    flex-direction: column;
  }
  
  .field-group label {
    margin-bottom: 4px;
    font-size: 14px;
    color: #2B2D2C;
    font-family: 'Nunito Sans', sans-serif;
  }

  .input {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #C9C9C9;
    background: #ffffff;
    font-size: 18px;
    color: #2B2D2C;
    font-family: 'Nunito Sans', sans-serif;
  }
  
  /* Botão primário */
  .primary-button {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
  }
  .primary-button:hover{
  opacity:0.9;
  }

.secondary-button {

  flex: 1;
  height: 40px;
  border: 1px solid #CFCFCF;
  border-radius: var(--radius-md);
  background: transparent;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  color: #405C58;
  cursor: pointer;
  transition: all 0.15s ease;
}

.secondary-button:hover {
  background: rgba(0, 0, 0, 0.03);
}

.secondary-button:active {
  transform: scale(0.98);
}
  
  /* Resultado padrão */
  .result-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-result-label);
  }
  
  .result-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
  }
  
  .result-box {
    flex: 1;
    background: var(--color-result-bg);
    border-radius: var(--radius-md);
    height: 64px;
    font-size: 18px;
    color: var(--color-result-text);
  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .copy-button {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: var(--radius-md);
    background: #D9DFDF;
    font-size: 20px;
    cursor: pointer;
  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .copy-button:hover{
  opacity:0.9;
  }

  

  /* ===================================================
     6. UTILITIES
  =================================================== */
  .hidden {
    display: none;
  }
  
  .row {
    display: flex;
    gap: 16px;
  }

  /* ===================================================
     7. MEDIA QUERIE DESKTOP - GERAIS
  =================================================== */

@media (min-width: 1024px) {

  .container {
  max-width: none;
  }

  .select-wrapper {
  max-width: 984px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.select {
  padding: 12px 40px 12px 40px; /* espaço igual nos dois lados */
}
  
  .ferramenta {
    max-width: 984px;
    margin:0 auto;
    background-color: #F8FAF9;
    padding: 24px;
    border-radius: var(--radius-md);

  }

  .dropdown {
    max-width: 984px;
    margin:0 auto;
    margin-bottom: 32px;
    padding: 12px 0;
    font-size: 16px;
  }

  .header-inner {
    max-width: 984px;
    margin:0 auto;
  }
  

  .helper-content {
  max-width: 984px;
  margin: 0 auto;
  }





}
  
  /* ===================================================
     8. TOOL ESPECÍFICO — CALCULADORA
  =================================================== */
  .ferramenta {
    margin-top: 24px;
  }
  
  .ferramenta .field-group {
    flex: 1;
  }
  
  .ferramenta .result-group {
    margin: 24px 0 0 0;
  }

  .field-group:first-child {
    flex: 0 0 96px;
  }
  
  .field-group:last-child {
    flex: 1;
  }

  #calculateBtn {
    margin-top: 32px;
  }

.input-wrapper {
  position: relative;
  width: 100%;          /* garante mesma largura do input */
  display: block;
}

.input-percent {
  width: 100%;
  padding-right: 36px;  /* espaço suficiente para o % */
}

.input-suffix {
  position: absolute;

  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 14px;
  color: #747474;

  pointer-events: none;
}
  /* ===================================================
      MEDIA QUERIE ESPECÍFICO — CALCULADORA
  =================================================== */
@media (min-width: 1024px) {
  .field-group:first-child {
    flex: 0 0 120px;
  }
}

/* ===================================================
   TOOL ESPECÍFICO — POMODORO
=================================================== */

.timer-modes {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.timer-display {
  width: 100%;
  padding: 64px 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    to bottom,
    #24413E,
    #2C4845
  );

  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 200;
  font-size: 56px;
  color: #BEF0C7;
  text-shadow: 0px 2px 13px rgba(190, 240, 199, 0.75);
}
.timer-display-container {
  margin-bottom: 8px;
}
.timer-start-button {
  background: var(--color-primary);
    color: #fff;
}
.timer-start-button:hover{
  opacity:0.9;
}

.timer-start-button--pause {
    background: var(--color-primary);
    color: #fff;
}
.timer-start-button--pause:hover{
  opacity:0.9;
}

.timer-display--finished {
  background: #507F7C;
}
.timer-start-button--completed {

  background-color: #D8D8D8;
  color: #6D6D6D;

  cursor: not-allowed;

}