/**
 * Calculadora de Dias - Estilos
 */

/* Calculator tabs */
.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0.75rem;
}

.calc-tab {
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: all 0.2s;
}

.calc-tab:hover {
  color: var(--gray-700);
  background: var(--gray-50);
}

.calc-tab.active {
  color: var(--primary);
  background: var(--primary-bg);
}

/* Calculator panels */
.calc-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.calc-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Date inputs */
.date-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.date-group {
  flex: 1;
  min-width: 200px;
}

.date-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.date-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.date-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.number-input {
  width: 120px;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}

.number-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Inline form */
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.inline-text {
  font-size: 1rem;
  color: var(--gray-600);
}

.operation-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

/* Result display */
.result-card {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #eef2ff 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.result-main {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 1rem;
  color: var(--gray-600);
}

.result-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.result-detail {
  text-align: center;
}

.result-detail-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
}

.result-detail-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Date result */
.date-result {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.weekday {
  font-size: 1rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* Quick buttons */
.quick-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.quick-date-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  background: white;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-date-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Today button */
.today-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--gray-600);
  cursor: pointer;
  margin-left: 0.5rem;
}

.today-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

/* Responsive */
@media (max-width: 640px) {
  .date-form {
    flex-direction: column;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .number-input {
    width: 100%;
  }

  .result-main {
    font-size: 2.25rem;
  }

  .result-details {
    flex-direction: column;
    gap: 1rem;
  }

  .calc-tabs {
    justify-content: center;
  }
}
