/* Deadline Calculator tool — /tools/deadline-calculator */

.dlc-card {
  background: var(--bg);
  border: 1px solid rgba(47, 72, 80, 0.12);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.dlc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 12px;
}

.dlc-input {
  width: 100%;
  max-width: 320px;
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 1px solid rgba(47, 72, 80, 0.25);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  font-family: inherit;
}

.dlc-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(162, 185, 100, 0.25);
}

.dlc-hint {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: #667;
  line-height: 1.6;
}

.dlc-empty {
  color: #778;
  font-style: italic;
  padding: 8px 2px;
}

/* Results */
.dlc-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.dlc-result {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: white;
  border: 1px solid rgba(47, 72, 80, 0.12);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(47, 72, 80, 0.04);
}

.dlc-result-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.dlc-result-body {
  flex: 1;
  min-width: 0;
}

.dlc-result-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.dlc-result-label {
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

.dlc-result-date {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin: 2px 0 4px;
}

.dlc-result-rule {
  font-size: 0.85rem;
  color: #778;
}

/* Pills */
.dlc-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(47, 72, 80, 0.08);
  color: var(--primary);
  white-space: nowrap;
}

.dlc-pill-soon {
  background: rgba(245, 204, 75, 0.35);
  color: #7a5c00;
}

.dlc-pill-overdue {
  background: rgba(200, 80, 70, 0.15);
  color: #b23c30;
}

/* Info note */
.dlc-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  padding: 14px 16px;
  background: rgba(181, 164, 203, 0.14);
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4a4a55;
}

.dlc-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--purple);
}

/* CTA band */
.dlc-cta {
  background: var(--primary);
  color: white;
  border-radius: 14px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.dlc-cta-title {
  color: white;
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.dlc-cta-text {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 22px;
}

.dlc-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.dlc-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Reference tables */
.dlc-h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.dlc-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.dlc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.dlc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(47, 72, 80, 0.1);
  color: #444;
  line-height: 1.6;
  vertical-align: top;
}

.dlc-table td:first-child {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  width: 160px;
}

.dlc-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .dlc-card {
    padding: 20px;
  }
  .dlc-result {
    padding: 16px;
    gap: 12px;
  }
  .dlc-result-date {
    font-size: 1.2rem;
  }
  .dlc-cta {
    padding: 24px 20px;
  }
  .dlc-table td:first-child {
    width: auto;
    white-space: normal;
  }
}
