/**
 * Inflation Calculator Stylesheet
 * Pixel-perfect Calculator.net clone matching design conventions
 */

/* Container & Layout */
.inf-page-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 16px 40px;
  font-family: Arial, Helvetica, sans-serif;
  color: #000000;
  box-sizing: border-box;
}

/* Breadcrumbs & Top Bar */
.inf-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.inf-breadcrumbs {
  color: #0844a4;
}

.inf-breadcrumbs a {
  color: #0844a4;
  text-decoration: none;
}

.inf-breadcrumbs a:hover {
  text-decoration: underline;
}

.inf-breadcrumbs .sep {
  color: #888888;
  margin: 0 4px;
}

.inf-breadcrumbs .current {
  color: #555555;
}

.inf-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inf-saved-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #2b5a88;
  background: #f5f7fa;
  border: 1px solid #ccd5df;
  border-radius: 3px;
  padding: 3px 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.inf-saved-btn:hover {
  background: #eaf0f7;
  border-color: #a9b9cb;
}

.inf-print-link {
  font-size: 13px;
  color: #0844a4;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.inf-print-link:hover {
  color: #cc0000;
}

/* Page Title & Intro */
.inf-page-title {
  font-size: 24px;
  font-weight: bold;
  color: #0844a4;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.inf-intro-text {
  font-size: 13px;
  line-height: 1.5;
  color: #222222;
  margin-bottom: 16px;
}

/* Main Layout: 2 Columns */
.inf-main-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.inf-content-col {
  flex: 1;
  min-width: 0;
}

.inf-sidebar-col {
  width: 270px;
  flex-shrink: 0;
}

/* Calculator Box Wrapper & Tabs */
.inf-calc-box-wrapper {
  margin-bottom: 24px;
}

.inf-tab-bar {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 -1px 0;
  gap: 2px;
  border-bottom: 1px solid #7f9db9;
  position: relative;
  z-index: 1;
  overflow-x: auto;
}

.inf-tab-item {
  margin: 0;
}

.inf-tab-btn {
  background: #e6edf5;
  border: 1px solid #7f9db9;
  border-bottom: 1px solid #7f9db9;
  padding: 6px 14px;
  font-size: 13px;
  color: #0844a4;
  cursor: pointer;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.inf-tab-btn:hover {
  background: #f0f4f9;
}

.inf-tab-btn.active {
  background: #ffffff;
  color: #000000;
  font-weight: bold;
  border-bottom: 1px solid #ffffff;
}

/* Calculator Box */
.inf-calc-box {
  background: #ffffff;
  border: 1px solid #7f9db9;
  padding: 16px;
  display: flex;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.inf-form-side {
  width: 320px;
  flex-shrink: 0;
}

.inf-results-side {
  flex: 1;
  min-width: 0;
  background: #f5f8fb;
  border: 1px solid #c9d8e7;
  border-radius: 4px;
  padding: 14px;
}

/* Form Elements */
.inf-form-table {
  width: 100%;
  border-collapse: collapse;
}

.inf-form-table td {
  padding: 6px 0;
  font-size: 13px;
  vertical-align: middle;
}

.inf-label-col {
  width: 140px;
  color: #222222;
}

.inf-input-col {
  padding-left: 8px !important;
}

.inf-input-group {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  overflow: hidden;
  height: 25px;
  box-sizing: border-box;
}

.inf-input-prefix,
.inf-input-suffix {
  background: #f0f4f9;
  color: #333333;
  font-size: 12px;
  padding: 0 6px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid #d4dfea;
  user-select: none;
}

.inf-input-suffix {
  border-right: none;
  border-left: 1px solid #d4dfea;
}

.inf-input {
  border: none;
  outline: none;
  font-size: 13px;
  padding: 2px 6px;
  width: 100px;
  font-family: inherit;
  color: #000000;
  height: 100%;
  box-sizing: border-box;
}

.inf-input.text-right {
  text-align: right;
}

.inf-select {
  border: 1px solid #7f9db9;
  border-radius: 2px;
  height: 25px;
  font-size: 13px;
  padding: 2px 6px;
  font-family: inherit;
  background: #ffffff;
  color: #000000;
  width: 140px;
  box-sizing: border-box;
}

.inf-btn-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inf-calc-btn {
  background: #5c9038;
  color: #ffffff;
  border: 1px solid #48722c;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease;
}

.inf-calc-btn:hover {
  background: #4e7d2f;
}

.inf-clear-btn {
  background: #eef2f6;
  color: #333333;
  border: 1px solid #b5c4d4;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.inf-clear-btn:hover {
  background: #e0e7ee;
}

/* Results Side Styling */
.inf-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d4dfea;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.inf-results-header h3 {
  font-size: 15px;
  color: #0844a4;
  margin: 0;
  font-weight: bold;
}

.inf-save-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #0844a4;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.inf-save-link-btn:hover {
  color: #cc0000;
}

.inf-result-headline {
  background: #e7f3e5;
  border: 1px solid #b8dfb3;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #1a4a15;
  margin-bottom: 12px;
}

.inf-result-headline strong {
  color: #0f360c;
}

.inf-result-subtext {
  font-size: 12.5px;
  color: #444444;
  margin-top: 4px;
}

.inf-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 14px;
}

.inf-summary-table tr {
  border-bottom: 1px solid #e2eaf1;
}

.inf-summary-table td {
  padding: 5px 4px;
}

.inf-summary-table .label {
  color: #444444;
  width: 60%;
}

.inf-summary-table .val {
  font-weight: bold;
  text-align: right;
  color: #000000;
}

.inf-summary-table .primary-row td {
  background: #eef5fc;
  font-size: 14px;
  font-weight: bold;
  color: #0844a4;
  padding: 6px 4px;
}

/* Chart Canvas Wrap */
.inf-chart-wrap {
  background: #ffffff;
  border: 1px solid #ccd9e6;
  border-radius: 4px;
  padding: 10px;
  margin-top: 12px;
}

.inf-chart-header {
  font-size: 12px;
  font-weight: bold;
  color: #2b5a88;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inf-canvas {
  width: 100%;
  height: 190px;
  display: block;
}

/* Schedule Section */
.inf-schedule-section {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #7f9db9;
  padding: 16px;
}

.inf-schedule-title {
  font-size: 16px;
  color: #0844a4;
  margin: 0 0 12px 0;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inf-schedule-scroll {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #ccd5df;
}

.inf-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: right;
}

.inf-data-table th {
  background: #1f4f82;
  color: #ffffff;
  padding: 6px 8px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 2;
  border: 1px solid #7f9db9;
}

.inf-data-table td {
  padding: 5px 8px;
  border: 1px solid #e1e7ee;
}

.inf-data-table tr:nth-child(even) td {
  background: #f5f8fb;
}

.inf-data-table tr:hover td {
  background: #eaf1f8;
}

.inf-data-table td.text-center {
  text-align: center;
}

.inf-data-table td.text-left {
  text-align: left;
}

/* Educational Info Section */
.inf-info-section {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: #222222;
}

.inf-info-section h2 {
  font-size: 17px;
  color: #0844a4;
  margin: 20px 0 8px 0;
  font-weight: bold;
  border-bottom: 1px solid #ccd5df;
  padding-bottom: 4px;
}

.inf-info-section p {
  margin-bottom: 12px;
}

.inf-formula-box {
  background: #f5f8fc;
  border: 1px solid #c5d7e8;
  border-left: 4px solid #1f4f82;
  padding: 10px 14px;
  margin: 12px 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

/* Sidebar Styles */
.inf-search-box {
  display: flex;
  margin-bottom: 12px;
}

.inf-search-input {
  flex: 1;
  height: 28px;
  border: 1px solid #7f9db9;
  border-right: none;
  padding: 0 8px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
}

.inf-search-btn {
  background: #5c9038;
  color: #ffffff;
  border: 1px solid #48722c;
  padding: 0 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}

.inf-search-btn:hover {
  background: #4e7d2f;
}

.inf-search-dropdown {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #7f9db9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.inf-search-result-item {
  padding: 6px 10px;
  font-size: 12px;
  color: #0844a4;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #edf2f7;
}

.inf-search-result-item:hover {
  background: #eaf1f8;
}

.inf-search-result-cat {
  color: #777777;
  font-size: 11px;
}

.inf-sidebar-card {
  border: 1px solid #7f9db9;
  background: #ffffff;
  margin-bottom: 14px;
}

.inf-sidebar-header {
  background: #1f4f82;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 10px;
}

.inf-sidebar-content {
  padding: 10px;
}

.inf-sidebar-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: 12px;
}

.inf-sidebar-links-grid a {
  color: #0844a4;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inf-sidebar-links-grid a:hover {
  text-decoration: underline;
}

.inf-sidebar-links-grid a.active-link {
  font-weight: bold;
  color: #000000;
}

.inf-sidebar-more {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #e5edf5;
  font-size: 11.5px;
}

.inf-sidebar-more a {
  color: #0844a4;
  text-decoration: none;
}

.inf-sidebar-more a:hover {
  text-decoration: underline;
}

.inf-sidebar-cats {
  background: #f0f4f9;
  border-top: 1px solid #ccd9e6;
  padding: 6px 10px;
  font-size: 11px;
  color: #555555;
  text-align: center;
}

.inf-sidebar-cats a {
  color: #0844a4;
  text-decoration: none;
}

.inf-sidebar-cats a:hover {
  text-decoration: underline;
}

.inf-sidebar-cats .sep {
  margin: 0 3px;
  color: #999999;
}

/* Modals */
.inf-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.inf-modal-dialog {
  background: #ffffff;
  border: 1px solid #7f9db9;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.inf-modal-header {
  background: #1f4f82;
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inf-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
}

.inf-modal-close-icon {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.inf-modal-body {
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
  flex: 1;
}

.inf-modal-footer {
  background: #f5f8fb;
  border-top: 1px solid #d4dfea;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inf-saved-item {
  background: #fbfcfe;
  border: 1px solid #ccd9e6;
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 10px;
}

.inf-saved-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: bold;
  color: #0844a4;
  margin-bottom: 4px;
}

.inf-saved-item-details {
  font-size: 12px;
  color: #444444;
  line-height: 1.4;
  margin-bottom: 6px;
}

.inf-saved-item-actions {
  display: flex;
  gap: 8px;
}

.inf-btn-sm {
  background: #eef2f6;
  border: 1px solid #b5c4d4;
  border-radius: 2px;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
}

.inf-btn-sm:hover {
  background: #e0e7ee;
}

.inf-btn-sm.load {
  background: #eaf3e8;
  border-color: #9ecc95;
  color: #1a4a15;
  font-weight: bold;
}

.inf-btn-sm.delete {
  color: #aa0000;
}

.inf-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f4f82;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.inf-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .inf-top-bar,
  .inf-tab-bar,
  .inf-sidebar-col,
  .inf-btn-row,
  .inf-save-link-btn,
  .inf-toast {
    display: none !important;
  }

  .inf-modal-backdrop {
    display: none !important;
  }

  /* When printing from modal */
  body.inf-printing-modal .inf-page-container {
    display: none !important;
  }

  body.inf-printing-modal #inf-print-modal {
    position: static !important;
    background: transparent !important;
    display: block !important;
    padding: 0 !important;
  }

  body.inf-printing-modal .inf-modal-dialog {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
  }

  body.inf-printing-modal .inf-modal-body {
    overflow: visible !important;
    padding: 0 !important;
  }

  body.inf-printing-modal .inf-modal-header,
  body.inf-printing-modal .inf-modal-footer,
  body.inf-printing-modal div[style*="display: flex; gap: 10px"] {
    display: none !important;
  }

  body, .inf-page-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .inf-main-layout {
    display: block !important;
  }

  .inf-content-col {
    width: 100% !important;
  }

  .inf-calc-box {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .inf-schedule-scroll {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .inf-main-layout {
    flex-direction: column;
  }
  .inf-sidebar-col {
    width: 100%;
  }
  .inf-calc-box {
    flex-direction: column;
  }
  .inf-form-side {
    width: 100%;
  }
}
