* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

:root {
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --page-bg-start: #f0f9ff;
  --page-bg-end: #f9fafb;
  --surface-accent-start: #f0f9ff;
  --surface-accent-end: #f9fafb;
  --button-secondary-bg: #f3f4f6;
  --field-bg: #ffffff;
  --input-focus-ring: rgba(59, 130, 246, 0.14);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-hover-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover-strong: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-dark: #bfdbfe;
  --primary-light: rgba(96, 165, 250, 0.18);
  --text-dark: #e5eefc;
  --text-light: #94a3b8;
  --bg-light: #0f172a;
  --bg-white: #111827;
  --border: #233046;
  --success: #34d399;
  --danger: #f87171;
  --page-bg-start: #020617;
  --page-bg-end: #0f172a;
  --surface-accent-start: #162033;
  --surface-accent-end: #0f172a;
  --button-secondary-bg: #162033;
  --field-bg: #0b1220;
  --input-focus-ring: rgba(96, 165, 250, 0.22);
  --shadow-soft: 0 1px 3px rgba(2, 6, 23, 0.55);
  --shadow-strong: 0 8px 24px rgba(2, 6, 23, 0.35);
  --shadow-hover-soft: 0 10px 28px rgba(2, 6, 23, 0.45);
  --shadow-hover-strong: 0 16px 40px rgba(2, 6, 23, 0.35);
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: linear-gradient(
    135deg,
    var(--page-bg-start) 0%,
    var(--page-bg-end) 100%
  );
  color: var(--text-dark);
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 70px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  animation: slideInDown 0.4s ease-out;
}

.nav-container {
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
}

a.nav-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  transition: color 0.2s ease;
}

.nav-brand span {
  white-space: nowrap;
}

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.22);
}

.nav-brand:hover {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-item {
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  position: relative;
  white-space: nowrap;
}

button.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

button.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.theme-toggle[aria-pressed="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.theme-toggle {
  width: 46px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
}

.theme-toggle::before {
  content: "\263E";
  font-size: 1.15rem;
  line-height: 1;
}

.theme-toggle[aria-pressed="true"]::before {
  content: "\2600";
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
  min-height: 0;
  animation: fadeIn 0.5s ease-out;
}

.clock-page .container {
  max-width: 980px;
  justify-content: center;
  gap: 22px;
  padding-block: 18px 12px;
}

.stopwatch-page .container {
  max-width: 720px;
  justify-content: center;
  align-items: center;
  padding-block: 16px 12px;
}

.timer-page .container {
  max-width: 720px;
  justify-content: center;
  align-items: center;
  padding-block: 16px 12px;
}

.holidays-page .container {
  max-width: 1040px;
  justify-content: flex-start;
  align-items: center;
  padding-block: 16px 12px;
  overflow-y: auto;
  padding-bottom: 24px;
}

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  flex-shrink: 0;
  animation: slideInUp 0.4s ease-out;
  margin-top: auto;
}

.footer-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.footer-info-item strong {
  color: var(--text-dark);
  font-weight: 600;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.footer-github-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.github-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.github-link:hover {
  color: var(--primary-dark);
  background-color: rgba(93, 155, 255, 0.1);
  text-decoration: underline;
}

.github-separator {
  color: var(--border);
  font-weight: 300;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer-copyright strong {
  color: var(--text-dark);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-light);
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer p {
  margin: 0;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  margin-bottom: 10px;
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.header p {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 400;
}

/* ===== CLOCK SECTION ===== */
.clock-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.digital-clock {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 52px 76px;
  box-shadow: var(--shadow-soft), var(--shadow-strong);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 360px;
  transition: all 0.3s ease;
}

.clock-page .digital-clock {
  width: min(100%, 900px);
  min-width: 0;
  padding: 54px 72px;
  border-radius: 22px;
  gap: 18px;
}

.digital-clock:hover {
  box-shadow: var(--shadow-hover-soft), var(--shadow-hover-strong);
}

.time {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 5.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.clock-page .time {
  font-size: clamp(4rem, 10vw, 8.4rem);
}

.clock-page .date {
  font-size: 1.15rem;
}

.date {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== STOPWATCH SECTION ===== */
.stopwatch-section {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-soft), var(--shadow-strong);
  border: 1px solid var(--border);
}

.stopwatch-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.stopwatch-display {
  background: linear-gradient(
    135deg,
    var(--surface-accent-start) 0%,
    var(--surface-accent-end) 100%
  );
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-bottom: 24px;
  border: 1px solid var(--primary-light);
}

.stopwatch-time {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0;
  display: block;
  font-variant-numeric: tabular-nums;
}

.stopwatch-page .stopwatch-section {
  display: flex;
  flex-direction: column;
  width: min(100%, 680px);
  min-height: auto;
  max-height: calc(100svh - 170px);
}

.timer-section {
  width: min(100%, 680px);
  background: var(--bg-white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-soft), var(--shadow-strong);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timer-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.timer-header p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.timer-display {
  background: linear-gradient(
    135deg,
    var(--surface-accent-start) 0%,
    var(--surface-accent-end) 100%
  );
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--primary-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timer-time {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.timer-status {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-light);
}

.timer-status.is-running,
.timer-summary-value.is-running {
  color: var(--success);
}

.timer-status.is-paused,
.timer-summary-value.is-paused {
  color: var(--primary-dark);
}

.timer-status.is-finished,
.timer-summary-value.is-finished {
  color: var(--danger);
}

.timer-config {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.timer-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timer-field span {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--field-bg);
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.timer-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}

.timer-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-btn {
  flex: 0 0 auto;
  min-width: 86px;
}

.timer-note {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.5;
}

.timer-controls {
  margin-bottom: 0;
}

.timer-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.timer-summary-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timer-summary-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.holidays-section {
  width: min(100%, 980px);
  background: var(--bg-white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-soft), var(--shadow-strong);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.holidays-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.holidays-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.holidays-header p,
.holidays-updated {
  font-size: 0.95rem;
  color: var(--text-light);
}

.holidays-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.holidays-summary-item {
  background: linear-gradient(
    135deg,
    var(--surface-accent-start) 0%,
    var(--surface-accent-end) 100%
  );
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.holidays-summary-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.holiday-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    var(--surface-accent-start) 0%,
    var(--surface-accent-end) 100%
  );
}

.holiday-filter-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.holiday-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.holiday-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.holiday-filter-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.holiday-filter-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.holiday-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.holiday-filter-btn:not(.is-active) .holiday-filter-count {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.holiday-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.holiday-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.holiday-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.holiday-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.holiday-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.holiday-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.holiday-note {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.45;
}

.holiday-date {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.holiday-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.84rem;
  font-weight: 700;
}

.holiday-status.is-past {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.holiday-status.is-future {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.holiday-status.is-today {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.holiday-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.holiday-metric {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.holiday-metric-label {
  font-size: 0.74rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.holiday-metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.holiday-metric-date {
  font-size: 0.84rem;
  color: var(--text-light);
  font-weight: 500;
}

.holiday-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.holiday-link {
  width: fit-content;
  min-width: 0;
  text-decoration: none;
}

.holiday-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--bg-light);
  text-align: center;
  color: var(--text-light);
  font-weight: 600;
}

/* ===== CONTROLS ===== */
.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  font-family: "Inter", sans-serif;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-primary.paused {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--button-secondary-bg);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-light);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
}

/* ===== LAPS SECTION ===== */
.laps-section {
  margin-top: 20px;
  min-height: auto;
  overflow: hidden;
}

.laps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(34svh, 340px);
  overflow-y: auto;
  padding-right: 4px;
}

.laps-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.lap-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: "Space Mono", monospace;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: background 0.2s ease;
}

.lap-item:hover {
  background: var(--bg-light);
}

.lap-item:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.lap-item:first-of-type {
  border-radius: 8px 8px 0 0;
}

.lap-item span:first-child {
  font-weight: 600;
  color: var(--primary);
}

.lap-item span:last-child {
  text-align: right;
  color: var(--text-dark);
  font-weight: 500;
}

/* ===== INFO FOOTER ===== */
.info-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-item {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
}

.info-value.sync {
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.95rem;
}

.info-value.sync::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .nav-brand {
    font-size: 1.1rem;
  }

  .nav-logo {
    width: 30px;
    height: 30px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .container {
    padding: 16px;
    gap: 20px;
  }

  .footer p {
    font-size: 0.8rem;
  }

  .header h1 {
    font-size: 2.25rem;
  }

  .digital-clock {
    padding: 42px 52px;
    min-width: auto;
  }

  .time {
    font-size: 4.6rem;
  }

  .clock-page .digital-clock {
    padding: 42px 44px;
  }

  .clock-page .time {
    font-size: clamp(3.8rem, 12vw, 6.5rem);
  }

  .stopwatch-display {
    padding: 20px;
  }

  .stopwatch-time {
    font-size: 2rem;
  }

  .timer-time {
    font-size: clamp(2.8rem, 9vw, 4.7rem);
  }

  .timer-config {
    grid-template-columns: 1fr;
  }

  .timer-summary {
    grid-template-columns: 1fr;
  }

  .holidays-summary,
  .holiday-list {
    grid-template-columns: 1fr;
  }

  .holiday-filter-bar {
    align-items: flex-start;
  }

  .holiday-filter-list {
    width: 100%;
  }

  .holiday-filter-btn {
    flex: 1 1 140px;
    justify-content: space-between;
  }

  .holiday-metrics {
    grid-template-columns: 1fr;
  }

  .btn {
    min-width: auto;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .laps-header,
  .lap-item {
    grid-template-columns: 0.6fr 1fr;
    padding: 10px 12px;
    gap: 12px;
  }

  .info-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 60px;
  }

  body {
    padding-top: 60px;
  }

  .container {
    padding: 12px;
    gap: 16px;
  }

  .nav-container {
    padding: 0 12px;
  }

  .nav-brand {
    font-size: 1rem;
  }

  .nav-brand span {
    display: none;
  }

  .nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .header h1 {
    font-size: 1.7rem;
  }

  .header p {
    font-size: 0.85rem;
  }

  .digital-clock {
    padding: 30px 22px;
  }

  .time {
    font-size: 3.35rem;
  }

  .clock-page .digital-clock {
    width: 100%;
    padding: 28px 20px;
  }

  .clock-page .time {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
  }

  .clock-page .date {
    font-size: 0.92rem;
    text-align: center;
  }

  .date {
    font-size: 0.85rem;
  }

  .stopwatch-section {
    padding: 20px;
  }

  .stopwatch-section h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .stopwatch-display {
    padding: 16px;
    margin-bottom: 16px;
  }

  .stopwatch-time {
    font-size: 1.8rem;
  }

  .stopwatch-page .stopwatch-section {
    max-height: calc(100svh - 150px);
  }

  .timer-section {
    padding: 20px;
    gap: 16px;
  }

  .timer-display {
    padding: 20px 16px;
  }

  .timer-time {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .timer-status {
    font-size: 0.88rem;
  }

  .timer-note {
    font-size: 0.85rem;
  }

  .holidays-section {
    padding: 20px;
    gap: 18px;
  }

  .holidays-header h2 {
    font-size: 1.2rem;
  }

  .holidays-updated,
  .holidays-header p {
    font-size: 0.88rem;
  }

  .holidays-summary-value {
    font-size: 1.15rem;
  }

  .holiday-filter-bar {
    padding: 14px;
  }

  .holiday-filter-btn {
    width: 100%;
  }

  .holiday-card {
    padding: 16px;
  }

  .holiday-top {
    flex-direction: column;
  }

  .holiday-name {
    font-size: 0.98rem;
  }

  .holiday-date {
    font-size: 0.88rem;
  }

  .controls {
    gap: 10px;
  }

  .btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .laps-header,
  .lap-item {
    grid-template-columns: 1fr 1fr;
    padding: 8px 10px;
    gap: 8px;
    font-size: 0.85rem;
  }

  .laps-header {
    font-size: 0.75rem;
  }

  .info-label {
    font-size: 0.7rem;
  }

  .info-value {
    font-size: 1rem;
  }

  .footer {
    padding: 16px;
    gap: 14px;
  }

  .footer-content {
    gap: 14px;
  }

  .footer-github-links {
    gap: 12px;
    font-size: 0.85rem;
  }

  .github-link {
    padding: 5px 10px;
    font-size: 0.85rem;
  }

  .footer p {
    font-size: 0.75rem;
  }
}
