/* Pregnancy Calculator Specific Stylesheet - Classical Clean Theme */

.preg-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #24292f;
}

/* TOP BAR: BREADCRUMBS & TOP ACTIONS */
.preg-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.preg-breadcrumbs {
  font-size: 13px;
  color: #57606a;
}
.preg-breadcrumbs a {
  color: #0844a4;
  text-decoration: none;
}
.preg-breadcrumbs a:hover {
  text-decoration: underline;
}
.preg-breadcrumbs .sep {
  margin: 0 5px;
  color: #8c959f;
}
.preg-breadcrumbs .current {
  color: #24292f;
  font-weight: 500;
}
.preg-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.preg-saved-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f4f6f8;
  border: 1px solid #b5c7d8;
  border-radius: 3px;
  color: #0844a4;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.preg-saved-btn:hover {
  background: #e8eef5;
  border-color: #0844a4;
}
.preg-saved-btn svg {
  flex-shrink: 0;
}
.preg-print-link {
  color: #0844a4;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.preg-print-link:hover {
  text-decoration: underline;
}

/* TITLE & INTRO */
.preg-title {
  font-size: 28px;
  font-weight: 700;
  color: #0844a4;
  margin: 0 0 10px 0;
  letter-spacing: -0.3px;
}
.preg-intro {
  font-size: 14px;
  line-height: 1.55;
  color: #333333;
  margin-bottom: 22px;
  max-width: 820px;
}

/* LAYOUT GRID */
.preg-main-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.preg-content-col {
  flex: 1;
  min-width: 0;
}
.preg-sidebar-col {
  width: 290px;
  flex-shrink: 0;
}

/* CALCULATOR BOX - CLONE STYLING */
.preg-calc-box {
  background: #f2f2f2;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.preg-form-group {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 14px;
}

.preg-form-label {
  width: 170px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #24292f;
  flex-shrink: 0;
}

.preg-form-control {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preg-select,
.preg-input {
  font-size: 14px;
  padding: 5px 8px;
  border: 1px solid #abadb3;
  background-color: #ffffff;
  color: #24292f;
  border-radius: 3px;
  outline: none;
  font-family: inherit;
}
.preg-select:focus,
.preg-input:focus {
  border-color: #0844a4;
  box-shadow: 0 0 0 2px rgba(8, 68, 164, 0.15);
}

.preg-select-method {
  min-width: 155px;
  font-weight: 500;
}

.preg-date-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.preg-calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #abadb3;
  border-radius: 3px;
  cursor: pointer;
  color: #c93b2b;
  position: relative;
  overflow: hidden;
}
.preg-calendar-btn:hover {
  background: #f6f8fa;
  border-color: #0844a4;
}
.preg-calendar-btn input[type="date"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.preg-btn-row {
  display: flex;
  align-items: center;
  margin-top: 18px;
  margin-left: 184px;
  gap: 12px;
}

/* GREEN CALCULATE BUTTON */
.preg-btn-calculate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #3b7e28;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 18px;
  border: 1px solid #2d621f;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: background-color 0.15s ease;
}
.preg-btn-calculate:hover {
  background-color: #316c21;
}

.preg-btn-calculate .play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #ffffff;
  display: inline-block;
  margin-left: 2px;
}

.preg-btn-clear {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  background: #ffffff;
  color: #57606a;
  padding: 6px 14px;
  border: 1px solid #d0d7de;
  border-radius: 3px;
  cursor: pointer;
}
.preg-btn-clear:hover {
  background: #f6f8fa;
  color: #24292f;
}

/* RELATED SECTION */
.preg-related-section {
  margin: 18px 0 24px;
}
.preg-related-tab {
  display: inline-block;
  background: #e9ecef;
  color: #24292f;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border: 1px solid #ced4da;
  border-bottom: none;
}
.preg-related-links {
  display: flex;
  gap: 8px;
  padding-top: 6px;
}
.preg-related-btn {
  display: inline-block;
  background-color: #2c5f88;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.preg-related-btn:hover {
  background-color: #1f4563;
  color: #ffffff;
}

/* RESULTS CARD */
.preg-result-card {
  display: none;
  background: #ffffff;
  border: 1px solid #b7dbff;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0 28px;
  box-shadow: 0 2px 8px rgba(8, 68, 164, 0.08);
}
.preg-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e1e4e8;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.preg-result-title {
  font-size: 20px;
  font-weight: 700;
  color: #0844a4;
  margin: 0;
}
.preg-result-actions {
  display: flex;
  gap: 8px;
}
.preg-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 3px;
  cursor: pointer;
  color: #24292f;
}
.preg-action-btn:hover {
  background: #eef2f6;
  border-color: #0844a4;
  color: #0844a4;
}

.preg-key-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.preg-metric-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px 14px;
  text-align: center;
}
.preg-metric-box.highlight {
  background: #f0fdf4;
  border-color: #86efac;
}
.preg-metric-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.preg-metric-val {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}
.preg-metric-box.highlight .preg-metric-val {
  color: #15803d;
}
.preg-metric-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* PROGRESS BAR */
.preg-progress-wrapper {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.preg-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}
.preg-progress-track {
  height: 14px;
  background: #e2e8f0;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  position: relative;
}
.preg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b7e28, #22c55e);
  border-radius: 7px;
  transition: width 0.4s ease;
}
.preg-trimester-markers {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
}

/* MILESTONES TABLE */
.preg-table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
}
.preg-milestones-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.preg-milestones-table th {
  background-color: #2c5f88;
  color: #ffffff;
  padding: 8px 12px;
  font-weight: 600;
  border: 1px solid #1f4563;
}
.preg-milestones-table td {
  padding: 7px 12px;
  border: 1px solid #e1e4e8;
  color: #24292f;
}
.preg-milestones-table tr:nth-child(even) {
  background-color: #f9fbfd;
}
.preg-milestones-table tr.current-row {
  background-color: #eff6ff;
  font-weight: 600;
}
.preg-milestones-table tr.current-row td:first-child {
  border-left: 4px solid #0844a4;
}

/* SEO / AEO CONTENT SECTION */
.preg-seo-section {
  margin-top: 36px;
  font-size: 14px;
  line-height: 1.65;
  color: #24292f;
}
.preg-seo-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0844a4;
  margin: 24px 0 12px;
  border-bottom: 1px solid #e1e4e8;
  padding-bottom: 6px;
}
.preg-seo-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin: 18px 0 8px;
}
.preg-seo-section p {
  margin: 0 0 14px;
}
.preg-seo-section ul,
.preg-seo-section ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.preg-seo-section li {
  margin-bottom: 6px;
}

.seo-formula-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0844a4;
  padding: 12px 16px;
  border-radius: 3px;
  margin: 16px 0;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.seo-aeo-card {
  background: #f0f9ff;
  border: 1px solid #b9e6fe;
  border-radius: 6px;
  padding: 16px 18px;
  margin: 20px 0;
}
.seo-aeo-card .aeo-q {
  font-size: 15px;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 8px;
}
.seo-aeo-card .aeo-a {
  font-size: 14px;
  color: #0c4a6e;
  line-height: 1.55;
}

.geo-insight-box {
  background: #fdf4ff;
  border: 1px solid #f0abfc;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
}
.geo-insight-box .geo-title {
  font-size: 14px;
  font-weight: 700;
  color: #86198f;
  margin-bottom: 6px;
}

/* SIDEBAR - CLONE STYLING */
.sidebar-search-box {
  display: flex;
  margin-bottom: 20px;
}
.sidebar-search-input {
  flex: 1;
  padding: 5px 8px;
  font-size: 13px;
  border: 1px solid #abadb3;
  border-right: none;
  border-radius: 3px 0 0 3px;
  outline: none;
}
.sidebar-search-input:focus {
  border-color: #2c5f88;
}
.sidebar-search-btn {
  background-color: #2c5f88;
  color: #ffffff;
  border: 1px solid #1f4563;
  border-radius: 0 3px 3px 0;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-search-btn:hover {
  background-color: #1f4563;
}

.sidebar-card {
  border: 1px solid #3b739e;
  border-radius: 3px;
  margin-bottom: 20px;
  background: #ffffff;
}
.sidebar-card-header {
  background-color: #2c5f88;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
}
.sidebar-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding: 12px;
  font-size: 12px;
}
.sidebar-card-body a {
  color: #0844a4;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}
.sidebar-card-body a:hover {
  text-decoration: underline;
}
.sidebar-card-body a.active {
  font-weight: 700;
  color: #24292f;
}
.sidebar-card-footer {
  border-top: 1px solid #e1e4e8;
  padding: 6px 12px;
  font-size: 11px;
  background: #f6f8fa;
  color: #57606a;
}
.sidebar-card-footer a {
  color: #0844a4;
  text-decoration: none;
  margin: 0 3px;
}
.sidebar-card-footer a:hover {
  text-decoration: underline;
}

/* MODALS FOR SAVE & PRINT */
.preg-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.preg-modal-backdrop.show {
  display: flex;
}
.preg-modal-card {
  background: #ffffff;
  border-radius: 6px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  overflow: hidden;
}
.preg-modal-header {
  background: #2c5f88;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preg-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.preg-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.preg-modal-body {
  padding: 18px;
  overflow-y: auto;
  font-size: 13px;
  color: #24292f;
}
.preg-modal-footer {
  background: #f6f8fa;
  border-top: 1px solid #e1e4e8;
  padding: 10px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.preg-btn-modal-action {
  background: #3b7e28;
  color: #ffffff;
  border: 1px solid #2d621f;
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.preg-btn-modal-close {
  background: #ffffff;
  color: #57606a;
  border: 1px solid #d0d7de;
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}

/* RESPONSIVE DESIGN */
@media (max-width: 860px) {
  .preg-main-layout {
    flex-direction: column;
  }
  .preg-sidebar-col {
    width: 100%;
  }
  .preg-form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .preg-form-label {
    width: 100%;
    text-align: left;
  }
  .preg-btn-row {
    margin-left: 0;
  }
}
