/* Calculadora Hora - Custom Stylesheet */
.calc-widget-container {
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 40px auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.calc-widget-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 24px 20px;
  text-align: center;
}

.calc-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.calc-widget-title {
  margin: 4px 0 8px 0;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.calc-widget-subtitle {
  margin: 0;
  font-size: 15px;
  color: #dbeafe;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.calc-widget-body {
  padding: 24px 20px;
}

.calc-op-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.calc-tab-btn {
  flex: 1 1 180px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calc-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border: 2px solid #2563eb;
}

.calc-tab-btn.inactive {
  background: #f8fafc;
  color: #475569;
  border: 2px solid #cbd5e1;
}

.calc-toggles-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  color: #475569;
}

.calc-toggles-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-height: 32px;
}

.calc-toggles-bar input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.calc-row-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.calc-row-label {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  width: 65px;
}

.calc-input-group {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  min-height: 44px;
}

.calc-input-group input {
  width: 60px;
  min-height: 44px;
  padding: 6px 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  outline: none;
  -moz-appearance: textfield;
}

.calc-input-group span {
  padding: 6px 10px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-left: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
}

.calc-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.calc-btn-primary {
  flex: 2 1 200px;
  min-height: 48px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.calc-btn-secondary {
  flex: 1 1 120px;
  min-height: 48px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
}

.calc-btn-store {
  flex: 1 1 130px;
  min-height: 48px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  cursor: pointer;
}

.calc-btn-convert {
  flex: 1 1 130px;
  min-height: 48px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  cursor: pointer;
}

.calc-result-box {
  display: none;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.calc-result-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #166534;
  margin-bottom: 6px;
}

.calc-result-time {
  font-size: 38px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: -0.02em;
  font-family: monospace;
}

.calc-result-decimal {
  font-size: 15px;
  color: #166534;
  margin-top: 8px;
  line-height: 1.5;
}

.calc-result-days {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #86efac;
  font-size: 16px;
  font-weight: 700;
  color: #14532d;
}

.calc-notice {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #b45309;
  background: #fffbeb;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

/* Page content typography & layout */
.content-wrapper {
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #334155;
  line-height: 1.75;
}

.content-wrapper h2 {
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.content-wrapper h3 {
  color: #1e293b;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 26px;
  margin-bottom: 12px;
}

.content-wrapper p {
  color: #334155;
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.content-wrapper table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  margin: 24px 0;
}

.content-wrapper th {
  background-color: #f1f5f9;
  color: #1e293b;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  font-weight: 700;
}

.content-wrapper td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.callout-box {
  background-color: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: #1e3a8a;
  font-size: 16px;
  line-height: 1.6;
}
