/* Modern Calculator Design - Student Loan Repayment Calculator */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Modern Calculator Container */
.modern-calculator {
  max-width: 850px !important;
  width: 100%;
  margin: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Calculator Header */
.calculator-header {
  background: linear-gradient(135deg, #053b7d 0%, #298bac 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.calculator-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.calculator-subtitle {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 300;
}

/* Calculator Content */
.calculator-content {
  padding: 30px;
}

/* Input Section */
.input-section {
  margin-bottom: 30px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

.input-column {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #053b7d;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #053b7d;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #495057;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: white;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #053b7d;
  box-shadow: 0 0 0 3px rgba(5, 59, 125, 0.1);
}

.form-control:hover {
  border-color: #298bac;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #053b7d 0%, #298bac 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(5, 59, 125, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 59, 125, 0.4);
}

.btn-secondary {
  background: #6c757d;
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
  color: white;
}

.smaller-button {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Results Section */
.results-section {
  margin-top: 30px;
}

.results-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #dee2e6;
}

.results-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #053b7d;
  text-align: center;
  margin: 0 0 25px 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.result-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-align: center;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.result-card.highlight {
  background: linear-gradient(135deg, #053b7d 0%, #298bac 100%);
  color: white;
  border: none;
}

.result-card.highlight .result-label,
.result-card.highlight .result-description {
  color: rgba(255, 255, 255, 0.9);
}

.result-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.result-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #053b7d;
  margin-bottom: 6px;
}

.result-card.highlight .result-value {
  color: white;
}

.result-description {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.3;
}

/* Comparison Table */
.comparison-section {
  margin-top: 30px;
}

.comparison-table {
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.comparison-table th {
  background: linear-gradient(135deg, #053b7d 0%, #298bac 100%);
  color: white;
  padding: 15px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.comparison-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
}

.comparison-table tr:hover {
  background-color: #f8f9fa;
}

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

/* Info Card */
.info-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #053b7d;
}

.info-card h4 {
  color: #053b7d;
  margin: 0 0 10px 0;
}

.info-card p {
  margin: 0 0 10px 0;
  color: #495057;
}

.info-card ul {
  margin: 10px 0;
  padding-left: 20px;
}

.info-card li {
  margin-bottom: 5px;
  color: #495057;
}

/* Alert */
.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Copy Section */
.copy-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.disclaimer-text {
  text-align: center;
  font-weight: 600;
  color: #053b7d;
  margin: 20px 0 10px 0;
}

#new-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Content Styling */
.content {
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 10px !important;
}

.content h2 {
  color: #053b7d;
  margin-top: 30px;
}

.content h3 {
  color: #298bac;
  margin-top: 20px;
}

.content p {
  color: #495057;
  line-height: 1.7;
}

/* Override sub-container width constraints */
.sub-container {
  max-width: none !important;
  width: 100%;
  overflow: visible;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .input-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .calculator-title {
    font-size: 1.8rem;
  }

  .calculator-content {
    padding: 20px;
  }

  .input-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-card {
    padding: 15px;
  }

  .result-value {
    font-size: 1.3rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 5px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .calculator-header {
    padding: 20px;
  }

  .calculator-title {
    font-size: 1.6rem;
  }

  .calculator-subtitle {
    font-size: 1rem;
  }

  .calculator-content {
    padding: 15px;
  }

  .input-column {
    padding: 15px;
  }

  .result-card {
    padding: 12px;
  }

  .result-value {
    font-size: 1.2rem;
  }
}

/* Desktop Layout Fix */
@media (min-width: 1025px) {
  body .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 12px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 10px 15px !important;
  }

  body .left-section {
    flex: 0 1 auto !important;
    max-width: calc(100% - 340px) !important;
    min-width: 0 !important;
    order: 1 !important;
    margin: 0 !important;
    padding: 0 15px !important;
  }

  body .right-column-wrapper {
    width: 320px !important;
    flex: 0 0 320px !important;
    order: 2 !important;
    align-self: flex-start !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  body .ad-container,
  body .blog-feed,
  body .extra-section {
    width: 100% !important;
    flex: 0 0 auto !important;
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }
}

/* Header Styling */
header {
  background: #1a365d;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo-container:hover {
  transform: translateY(-1px);
}

.calculator-icon {
  width: 32px;
  height: 40px;
  background: white;
  border-radius: 4px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.calc-screen {
  background: #1a1a1a;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 8px;
  font-weight: bold;
  text-align: right;
  padding: 2px 4px;
  border-radius: 2px;
  margin-bottom: 2px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.calc-buttons {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.calc-row {
  display: flex;
  gap: 1px;
}

.calc-btn {
  width: 5px;
  height: 5px;
  background: #f0f0f0;
  border-radius: 1px;
  border: 0.5px solid #ddd;
}

.calc-btn:nth-child(1) { background: #ff6b6b; }
.calc-btn:nth-child(2) { background: #4ecdc4; }
.calc-btn:nth-child(3) { background: #45b7d1; }
.calc-btn:nth-child(4) { background: #96ceb4; }

.logo-text {
  color: white;
  font-size: 26px;
  font-weight: 900;
  font-family: 'Orbitron', monospace;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navigation Styling */
#nav-menu {
  display: flex;
  gap: 8px;
}

.nav-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 14px;
  cursor: pointer;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

/* Right Column Styling */
body .ad-container .top-row,
body .blog-feed .top-row,
body .extra-section .top-row {
  background: linear-gradient(135deg, #053b7d 0%, #298bac 100%);
  color: white;
  font-size: 18px;
  font-weight: 600;
  padding: 18px 20px;
  text-align: center;
  border-radius: 12px 12px 0 0;
}
