/* QR Code page: ensure input-section buttons are clickable */
.qr-code-page .input-section button,
.qr-code-page .btn-primary {
  pointer-events: auto !important;
  z-index: 10 !important;
  position: relative;
}
/* Navigation Dropdown Fixes */
.nav-item {
  position: relative;
}
.dropdown {
  position: relative;
}
.dropdown-menu {

  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 0.5rem 0;
  z-index: 1200;
  display: none;
}
.dropdown.open > .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  color: #222;
  font-size: 1.08rem;
  background: transparent;
  padding: 0.7rem 1.2rem;
  pointer-events: auto;
  display: block;
  text-align: left;
  white-space: normal;
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: #eaf3ff;
  color: #1976d2;
}
@media (max-width: 1200px) {
  .nav-menu .dropdown-menu a {
    color: #222 !important;
    font-size: 1.08rem !important;
    background: transparent !important;
    padding: 0.7rem 1.2rem !important;
    pointer-events: auto !important;
    display: block !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .nav-menu .dropdown-menu {
    display: none !important;
  }
  .nav-menu .dropdown.open > .dropdown-menu {
    display: block !important;
  }
}

@media (max-width: 1200px) {
  .hero-stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    gap: 0.5rem;
  }
  .stat-item {
    min-width: 100px;
    max-width: 150px;
    margin-right: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    flex: 0 0 auto;
  }
}
@media (max-width: 1200px) {
  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .stat-item {
    min-width: 100px;
    max-width: 100%;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
  }
}
/* Restrict hero-content width for mobile/PWA */
@media (max-width: 1200px) {
  .hero-content {
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
}
/* DailyPulse Progress Chart: Make bars and outlines darker */


body.homepage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-center-wrapper {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}
.loan-calculator-container {
  background: #fff;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(76,90,220,0.13);
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.loan-calculator-header {
  background: linear-gradient(90deg, #4A90E2 0%, #764ba2 100%);
  color: #fff;
  border-radius: 20px 20px 0 0;
  padding: 2.2rem 2rem 1.2rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(76,90,220,0.13);
}
.loan-calculator-header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #f1eded;
  letter-spacing: 0.01em;
}
.loan-calculator-header p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 0.7rem;
  color: #e0e0ff;
}
.loan-calculator-container .input-section {
  background: #fafdff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 2.2rem 2rem 1.7rem 2rem;
  margin-bottom: 2rem;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loan-calculator-container label {
  font-size: 1.09rem;
  color: #1976d2;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
  width: 100%;
  text-align: left;
  max-width: 420px;
}
.loan-calculator-container input[type="number"],
.loan-calculator-container select {
  width: 100%;
  max-width: 420px;
  font-size: 1.13rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1.5px solid #bcd;
  margin-bottom: 1.2rem;
  box-sizing: border-box;
  background: #fff;
  font-family: inherit;
  transition: border 0.2s;
  box-shadow: 0 1px 4px rgba(76,90,220,0.07);
}
.loan-calculator-container input[type="number"]:focus,
.loan-calculator-container select:focus {
  border: 1.5px solid #4A90E2;
  outline: none;
  background: #f0f6ff;
}
.loan-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(90deg, #4A90E2 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  margin-top: 1.2rem;
  transition: background 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 420px;
}
.loan-btn:hover {
  background: #357abd;
  box-shadow: 0 4px 16px rgba(76,90,220,0.13);
}
.loan-calculator-container .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  margin-top: 1.2rem;
}
.loan-calculator-container .stat-card {
  background: #f0f6ff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  padding: 1.2rem 0.8rem;
  text-align: center;
}
.loan-calculator-container .stat-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1976d2;
  display: block;
  margin-bottom: 0.3rem;
}
.loan-calculator-container .stat-label {
  font-size: 1.08rem;
  color: #333;
}
.loan-calculator-container .breakdown {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
  padding: 1rem 0.8rem;
  margin-top: 1.2rem;
}
.loan-calculator-container .donation-section {
  background: #eaf3ff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.08);
  padding: 1.3rem;
  margin-top: 2.2rem;
  text-align: center;
}
.loan-calculator-container .donate-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #ff813f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s;
  margin-top: 0.7rem;
  box-sizing: border-box;
  line-height: 1.2;
}
.loan-calculator-container .donate-btn:hover {
  background: #e76a1a;
}
/* Loan Calculator Unique Container Style */
.loan-calculator-container {
  background: #fafdff;
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(76,90,220,0.13);
  border: 2px solid #4A90E2;
  padding: 2.7rem 2.2rem 2.2rem 2.2rem;
  position: relative;
  z-index: 1;
}
.loan-calculator-container h1 {
  font-size: 2.2rem;
  color: #edf0f4;
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.loan-calculator-container p {
  color: #333;
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 1.7rem;
}
.loan-calculator-container .input-section {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 2rem;
}
.loan-calculator-container label {
  font-size: 1.09rem;
  color: #1976d2;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
}
.loan-calculator-container input[type="number"],
.loan-calculator-container select {
  width: 100%;
  font-size: 1.15rem;
  padding: 1.1rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  margin-bottom: 1.2rem;
  box-sizing: border-box;
  background: #fff;
  font-family: inherit;
}
.loan-calculator-container .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  margin-top: 1.2rem;
}
.loan-calculator-container .stat-card {
  background: #eaf3ff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 0.8rem;
  text-align: center;
}
.loan-calculator-container .stat-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1976d2;
  display: block;
  margin-bottom: 0.3rem;
}
.loan-calculator-container .stat-label {
  font-size: 1.08rem;
  color: #333;
}
.loan-calculator-container .breakdown {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
  padding: 1rem 0.8rem;
  margin-top: 1.2rem;
}
.loan-calculator-container .donation-section {
  background: #eaf3ff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.08);
  padding: 1.3rem;
  margin-top: 2.2rem;
  text-align: center;
}
.loan-calculator-container .donate-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #ff813f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s;
  margin-top: 0.7rem;
  box-sizing: border-box;
  line-height: 1.2;
}
.loan-calculator-container .donate-btn:hover {
  background: #e76a1a;
}
body.word-counter-page, .word-counter-page {
  background: linear-gradient(135deg, #fafdff 0%, #f6f8f9 100%) !important;
  min-height: 100vh;
}
.word-counter-container {
  background: #f4f1f1;
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(76,90,220,0.10);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.input-section label {
  font-size: 1.08rem;
  color: #1976d2;
  margin-bottom: 0.4rem;
  display: block;
}
.input-section textarea {
  width: 100%;
  font-size: 1.13rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  background: #fafdff;
  resize: vertical;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.1rem 0.7rem;
  text-align: center;
}
.stat-number {
  font-size: 1.45rem;
  color: #1976d2;
  font-weight: 700;
  display: block;
}
.stat-label {
  font-size: 1.01rem;
  color: #555;
}
.donation-section {
  background: #eaf3ff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.08);
  padding: 1.2rem;
  margin-top: 2rem;
  text-align: center;
}
/* Donate button fix: consistent size and spacing */
.donate-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #ff813f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s;
  margin-top: 0.7rem;
  box-sizing: border-box;
  line-height: 1.2;
}
.donate-btn:hover {
  background: #e76a1a;
}
@media (max-width: 700px) {
  .word-counter-container {
    padding: 1.2rem 0.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
}
body, body.homepage {
  background: linear-gradient(90deg, #4A90E2 0%, #4e0796 100%) !important;
}

body { background: linear-gradient(90deg, #4A90E2 0%, #4e0796 100%) !important; }
/* Checkbox Grid Themes */
.theme-blue .checkbox-item.checked {
  background: #1976d2 !important;
  border-color: #1976d2 !important;
}
.theme-red .checkbox-item.checked {
  background: #d32f2f !important;
  border-color: #d32f2f !important;
}
.theme-gradient .checkbox-item.checked {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: #764ba2 !important;
}
.checkbox-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.checkbox-description {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 0.7rem;
}
.checkbox-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}
/* Image Converter Modern Styles */
.imgconv-header {
  background: linear-gradient(90deg, #764ba2 60%, #667eea 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(76,90,220,0.13);
  padding: 2.2rem 2rem 1.2rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: left;
}
.imgconv-header-icon {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 2.7rem;
  opacity: 0.85;
  pointer-events: none;
}
.imgconv-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.imgconv-description {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 0.7rem;
}
.imgconv-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.imgconv-section-title {
  font-size: 1.25rem;
  color: #764ba2;
  margin-bottom: 1rem;
  font-weight: 700;
}
.imgconv-subtitle {
  color: #667eea;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.imgconv-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1.08rem;
  border-radius: 10px;
  font-weight: 600;
  background: linear-gradient(90deg, #eaf3ff 60%, #d0e7ff 100%);
  color: #764ba2;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  margin: 0.3rem 0.2rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.imgconv-btn:hover {
  background: #d0e7ff;
  color: #4A90E2;
}
.imgconv-input {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}
/* Grocery List Generator Modern Styles */
.grocery-header {
  background: linear-gradient(90deg, #764ba2 60%, #667eea 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(76,90,220,0.13);
  padding: 2.2rem 2rem 1.2rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: left;
}
.grocery-header-icon {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 2.7rem;
  opacity: 0.85;
  pointer-events: none;
}
.grocery-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.grocery-description {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 0.7rem;
}
.grocery-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.grocery-section-title {
  font-size: 1.25rem;
  color: #764ba2;
  margin-bottom: 1rem;
  font-weight: 700;
}
.grocery-subtitle {
  color: #667eea;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.grocery-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1.08rem;
  border-radius: 10px;
  font-weight: 600;
  background: linear-gradient(90deg, #eaf3ff 60%, #d0e7ff 100%);
  color: #764ba2;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  margin: 0.3rem 0.2rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.grocery-btn:hover {
  background: #d0e7ff;
  color: #4A90E2;
}
.grocery-input {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}
.grocery-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0 1.5rem 0;
}
.grocery-meal-buttons, .grocery-ingredient-buttons, .grocery-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.grocery-meal-list-section, .grocery-ingredient-list-section {
  margin-bottom: 2rem;
}
.grocery-empty-state {
  text-align: center;
  color: #aaa;
  font-size: 1.08rem;
  margin: 1.2rem 0;
}
.grocery-results-section {
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 1.5rem 1.2rem;
  margin-bottom: 2rem;
}
.grocery-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.grocery-results-content {
  margin-top: 1rem;
}
/* Hero Gradient Orb */
.hero-gradient-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #4A90E2 0%, #764ba2 60%, #ffffff 100%);
  opacity: 0.15;
  filter: blur(4px);
  background: radial-gradient(circle at 40% 40%, #4A90E2 0%, #764ba2 60%, #fff 100%);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-gradient-orb {
    width: 220px;
    height: 220px;
    opacity: 0.15;
    filter: blur(2px);
  }
}
/* Paycheck Estimator Tool Styles */
.paycheck-header {
  text-align: center;
  margin-bottom: 2rem;
}
.paycheck-header .tool-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.paycheck-header h1 {
  font-size: 2rem;
  background: linear-gradient(90deg,#4A90E2,#1976d2,#667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.paycheck-header .tool-description {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.paycheck-calc-card {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.10);
  padding: 2.2rem 2rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto 2rem auto;
  text-align: center;
}
.paycheck-calc-card .input-group {
  margin-bottom: 1.2rem;
  text-align: left;
}
.paycheck-calc-card label {
  font-size: 1.08rem;
  color: #1976d2;
  margin-bottom: 0.7rem;
  display: block;
}
.paycheck-calc-card input[type="number"] {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}
.paycheck-btn-outline {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #eaf3ff;
  color: #1976d2;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  margin-right: 0.5rem;
  margin-bottom: 0.7rem;
  transition: background 0.2s;
}
.paycheck-btn-outline.active, .paycheck-btn-outline:hover {
  background: #d0e7ff;
}
.paycheck-btn-primary {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #4A90E2;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  width: 100%;
  margin-bottom: 1.2rem;
  transition: background 0.2s;
}
.paycheck-btn-primary:hover {
  background: #357abd;
}
.results {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 1.5rem 1.2rem;
  margin-top: 1.2rem;
  text-align: left;
}
.results.hidden {
  display: none;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.stat-item {
  background: #eaf3ff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.08rem;
  color: #1976d2;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
}
.stat-label {
  display: block;
  font-size: 1rem;
  color: #1976d2;
  margin-bottom: 0.3rem;
}
.stat-value {
  font-size: 1.15rem;
  color: #333;
  font-weight: bold;
}
.stat-value.income {
  color: #1976d2;
}
.stat-value.expense {
  color: #e86c1a;
}
.breakdown {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
  padding: 1rem 0.8rem;
  margin-top: 1.2rem;
}
.breakdown-item {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 0.7rem;
}
/* Savings Tracker Tool Styles */
.savings-header {
  text-align: center;
  margin-bottom: 2rem;
}
.savings-header .tool-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.savings-header h1 {
  font-size: 2rem;
  background: linear-gradient(90deg,#4A90E2,#1976d2,#667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.savings-header .tool-description {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.savings-calc-card {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.10);
  padding: 2.2rem 2rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto 2rem auto;
  text-align: center;
}
.savings-calc-card .section-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 1.5rem 1.2rem;
  margin-bottom: 1.2rem;
  text-align: left;
}
.savings-calc-card label {
  font-size: 1.08rem;
  color: #1976d2;
  margin-bottom: 0.7rem;
  display: block;
}
.savings-calc-card input[type="number"], .savings-calc-card input[type="text"], .savings-calc-card input[type="date"] {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}
.savings-btn-primary {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #4A90E2;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  width: 100%;
  margin-bottom: 1.2rem;
  transition: background 0.2s;
}
.savings-btn-primary:hover {
  background: #357abd;
}
.savings-btn-secondary {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #eaf3ff;
  color: #1976d2;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  margin-right: 0.5rem;
  margin-bottom: 0.7rem;
  transition: background 0.2s;
}
.savings-btn-secondary:hover {
  background: #d0e7ff;
}
.savings-btn-outline {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #fff;
  color: #1976d2;
  border: 1px solid #4A90E2;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  margin-bottom: 0.7rem;
  transition: background 0.2s;
}
.savings-btn-outline:hover {
  background: #eaf3ff;
}
.savings-btn-success {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #43d17a;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  margin-right: 0.5rem;
  margin-bottom: 0.7rem;
  transition: background 0.2s;
}
.savings-btn-success:hover {
  background: #2ca85a;
}
.savings-btn-info {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #eaf3ff;
  color: #1976d2;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  margin-right: 0.5rem;
  margin-bottom: 0.7rem;
  transition: background 0.2s;
}
.savings-btn-info:hover {
  background: #d0e7ff;
}
.results {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 1.5rem 1.2rem;
  margin-top: 1.2rem;
  text-align: left;
}
.results.hidden {
  display: none;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.stat-item {
  background: #eaf3ff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.08rem;
  color: #1976d2;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
}
.stat-label {
  display: block;
  font-size: 1rem;
  color: #1976d2;
  margin-bottom: 0.3rem;
}
.stat-value {
  font-size: 1.15rem;
  color: #333;
  font-weight: bold;
}
.stat-value.income {
  color: #1976d2;
}
.stat-item.highlight .stat-value {
  color: #43d17a;
}
.breakdown {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
  padding: 1rem 0.8rem;
  margin-top: 1.2rem;
}
.breakdown-item {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 0.7rem;
}
/* Bill Splitter Tool Styles */
.bill-header {
  text-align: center;
  margin-bottom: 2rem;
}
.bill-header .tool-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.bill-header h1 {
  font-size: 2rem;
  background: linear-gradient(90deg,#4A90E2,#1976d2,#667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.bill-header .tool-description {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.bill-calc-card {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.10);
  padding: 2.2rem 2rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto 2rem auto;
  text-align: center;
}
.bill-calc-card .input-group {
  margin-bottom: 1.2rem;
  text-align: left;
}
.bill-calc-card label {
  font-size: 1.08rem;
  color: #1976d2;
  margin-bottom: 0.7rem;
  display: block;
}
.bill-calc-card input[type="number"] {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}
.bill-btn-outline {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #eaf3ff;
  color: #1976d2;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  margin-right: 0.5rem;
  margin-bottom: 0.7rem;
  transition: background 0.2s;
}
.bill-btn-outline.active, .bill-btn-outline:hover {
  background: #d0e7ff;
}
.bill-btn-primary {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #4A90E2;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  width: 100%;
  margin-bottom: 1.2rem;
  transition: background 0.2s;
}
.bill-btn-primary:hover {
  background: #357abd;
}
.results {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 1.5rem 1.2rem;
  margin-top: 1.2rem;
  text-align: left;
}
.results.hidden {
  display: none;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.stat-item {
  background: #eaf3ff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.08rem;
  color: #1976d2;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
}
.stat-label {
  display: block;
  font-size: 1rem;
  color: #1976d2;
  margin-bottom: 0.3rem;
}
.stat-value {
  font-size: 1.15rem;
  color: #333;
  font-weight: bold;
}
.stat-value.highlight {
  color: #4A90E2;
}
.breakdown {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
  padding: 1rem 0.8rem;
  margin-top: 1.2rem;
}
.breakdown-item {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 0.7rem;
}
/* Budget Calculator Tool Styles */
.budget-header {
  text-align: center;
  margin-bottom: 2rem;
}
.budget-header .tool-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.budget-header h1 {
  font-size: 2rem;
  background: linear-gradient(90deg,#4A90E2,#1976d2,#667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.budget-header .tool-description {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.budget-calc-card {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.10);
  padding: 2.2rem 2rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto 2rem auto;
  text-align: center;
}
.budget-calc-card .budget-section {
  margin-bottom: 1.5rem;
  text-align: left;
}
.budget-calc-card label {
  font-size: 1.08rem;
  color: #1976d2;
  margin-bottom: 0.7rem;
  display: block;
}
.budget-calc-card input[type="number"] {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}
.budget-btn {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #4A90E2;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  width: 100%;
  margin-bottom: 1.2rem;
  transition: background 0.2s;
}
.budget-btn:hover {
  background: #357abd;
}
.results {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 1.5rem 1.2rem;
  margin-top: 1.2rem;
  text-align: left;
}
.results.hidden {
  display: none;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.stat-item {
  background: #eaf3ff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.08rem;
  color: #1976d2;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
}
.stat-label {
  display: block;
  font-size: 1rem;
  color: #1976d2;
  margin-bottom: 0.3rem;
}
.stat-value {
  font-size: 1.15rem;
  color: #333;
  font-weight: bold;
}
.stat-value.income {
  color: #1976d2;
}
.stat-value.expense {
  color: #e86c1a;
}
.breakdown {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
  padding: 1rem 0.8rem;
  margin-top: 1.2rem;
}
.breakdown-item {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 0.7rem;
}
/* Loan Calculator Tool Styles */
.loan-header {
  text-align: center;
  margin-bottom: 2rem;
}
.loan-header .tool-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.loan-header h1 {
  font-size: 2rem;
  background: linear-gradient(90deg,#4A90E2,#1976d2,#667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.loan-header .tool-description {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.loan-calc-card {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.10);
  padding: 2.2rem 2rem;
  max-width: 400px;
  width: 100%;
  margin: 0 auto 2rem auto;
  text-align: center;
}
.loan-calc-card .input-group {
  margin-bottom: 1.2rem;
  text-align: left;
}
.loan-calc-card label {
  font-size: 1.08rem;
  color: #1976d2;
  margin-bottom: 0.7rem;
  display: block;
}
.loan-calc-card input[type="number"], .loan-calc-card .term-input, .loan-calc-card .term-select {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}
.loan-calc-card .button-group {
  display: flex;
  gap: 0.7rem;
}
.loan-btn {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  background: #4A90E2;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  cursor: pointer;
  width: 100%;
  margin-bottom: 1.2rem;
  transition: background 0.2s;
}
.loan-btn:hover {
  background: #357abd;
}
.results {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 1.5rem 1.2rem;
  margin-top: 1.2rem;
  text-align: left;
}
.results.hidden {
  display: none;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.stat-item {
  background: #eaf3ff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.08rem;
  color: #1976d2;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
}
.stat-label {
  display: block;
  font-size: 1rem;
  color: #1976d2;
  margin-bottom: 0.3rem;
}
.stat-value {
  font-size: 1.15rem;
  color: #333;
  font-weight: bold;
}
.breakdown {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
  padding: 1rem 0.8rem;
  margin-top: 1.2rem;
}
.breakdown-item {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 0.7rem;
}
/* Unit Converter Tool Styles */
.unit-converter-header {
  text-align: center;
  margin-bottom: 2rem;
}
.unit-converter-header h1.gradient-title {
  font-size: 2.2rem;
  background: linear-gradient(90deg,#4A90E2,#1976d2,#667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.unit-converter-header .tool-icon-animated {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  animation: bounce 1.2s infinite alternate;
}
@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
.unit-converter-header .tool-description {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.conversion-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1.2rem 0 2rem 0;
}
.stat-item {
  background: #023568;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.08rem;
  color: #f1eded;
  box-shadow: 0 1px 6px rgba(76,90,220,0.13);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.conversion-type-selector .select-wrapper {
  background: #f8fafc;
  color: #1976d2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.conversion-type-selector .select-arrow {
  font-size: 1.5rem;
  margin-left: 0.5rem;
}
.enhanced-select, .unit-select, .enhanced-input, .challenge-input {
  font-size: 1.15rem !important;
  padding: 0.7rem 1.2rem !important;
  border-radius: 10px !important;
  border: 1px solid #bcd;
  margin: 0.5rem 0 1.2rem 0;
  width: 100%;
  max-width: 220px;
  box-sizing: border-box;
}
.swap-button, .challenge-button, .challenge-hint-btn, .quick-conversion-btn {
  padding: 1rem 2rem !important;
  font-size: 1.15rem !important;
  border-radius: 10px !important;
  font-weight: 600;
  margin: 0.4rem 0.3rem;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.swap-button {
  background: #1976d2;
  color: #fff;
}
.swap-button:hover {
  background: #1256a2;
}
.challenge-button, .challenge-hint-btn {
  background: #4A90E2;
  color: #fff;
}
.challenge-button:hover, .challenge-hint-btn:hover {
  background: #357abd;
}
.quick-conversion-btn {
  background: #eaf3ff;
  color: #1976d2;
}
.quick-conversion-btn:hover {
  background: #d0e7ff;
}
.conversion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.input-group {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
}
.swap-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}
.conversion-card {
  background: linear-gradient(90deg, #4d9ef0 0%, #6d6de6 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.conversion-table-section .table-container {
  overflow-x: auto;
}
.conversion-table th, .conversion-table td {
  font-size: 1.08rem;
  padding: 0.7rem 1.2rem;
}
.conversion-table {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  background: #fff;
  margin-bottom: 2rem;
}
.challenge-card {
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.challenge-input {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  margin: 0.5rem 0 1.2rem 0;
  width: 100%;
  max-width: 220px;
  box-sizing: border-box;
}
.challenge-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.conversion-formula {
  font-size: 1.08rem;
  color: #1976d2;
  margin-top: 1rem;
  text-align: center;
  background: #eaf3ff;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Roboto Mono', 'Menlo', 'Consolas', monospace;
  font-weight: 500;
  box-shadow: 0 1px 6px rgba(76,90,220,0.07);
}
.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.25rem;
  color: #e7e9eb;
  margin-bottom: 0.7rem;
  text-align: center;
}
.title-accent {
  color: #e2e7ec;
  font-size: 1rem;
  margin-left: 0.5rem;
}
.conversion-examples {
  background-color: white;
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
  text-align: center;
}
/* Image Converter Tool Styles */
body.image-converter-page {
  background: linear-gradient(120deg, #eaf3ff 0%, #f8fafc 100%);
  min-height: 100vh;
}
.image-converter-container {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(76,90,220,0.10);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
}
.tool-header {
  background: linear-gradient(90deg, #eaf3ff 60%, #d0e7ff 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 2rem;
  position: relative;
}
.tool-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #1976d2;
  letter-spacing: 0.02em;
}
.tool-header p {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 0.2rem;
}
.tool-icon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 2.5rem;
  opacity: 0.13;
  pointer-events: none;
}
.image-converter-container .converter-container {
  margin-top: 1.5rem;
}
.drop-zone {
  border: 2px dashed #1976d2;
  border-radius: 14px;
  background: #f8fafc;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.drop-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1976d2;
}
.drop-content p {
  color: #333;
  font-size: 2.2rem;
  background: #ffd600;
  color: #4a2c00;
  box-shadow: 0 4px 16px rgba(247, 183, 49, 0.35), 0 1px 8px rgba(168, 92, 0, 0.18);
  min-width: 3.6rem;
  min-height: 3.6rem;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: float 5s ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 1;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  transition: background 0.2s;
}
.upload-btn {
  background: #1976d2;
  color: #fff;
}
.upload-btn:hover {
  background: #1256a2;
}
.batch-download-btn {
  background: #4A90E2;
  color: #fff;
}
.batch-download-btn:hover {
  background: #357abd;
}
.clear-results-btn {
  background: #eaf3ff;
  color: #1976d2;
}
.clear-results-btn:hover {
  background: #d0e7ff;
}
.format-select, .quality-slider, .size-input {
  font-size: 1.15rem !important;
  padding: 0.7rem 1.2rem !important;
  border-radius: 8px !important;
  border: 1px solid #bcd;
  margin: 0.5rem 0 1.2rem 0;
  width: 100%;
  max-width: 220px;
  box-sizing: border-box;
}
.settings-section {
  background: #9faef3;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.settings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.setting-group {
  flex: 1 1 220px;
}
.results-section {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
}
.batch-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.2rem;
}
.features-section {
  margin: 2rem 0 1.5rem 0;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.feature-card {
  background: #eaf3ff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 0.8rem;
  text-align: center;
  flex: 1 1 180px;
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}
.format-info {
  margin: 2rem 0 1.5rem 0;
}
.format-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.format-card {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 0.8rem;
  flex: 1 1 180px;
}
.donation-section {
  text-align: center;
  margin: 2rem 0;
}
.donate-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff813f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 0.5rem;
}
.donate-btn:hover {
  background: #e86c1a;
}
@media (max-width: 600px) {
  .image-converter-container {
    padding: 1rem 0.2rem 1.2rem 0.2rem;
  }
  .tool-header h1 {
    font-size: 1.3rem;
  }
  .feature-icon {
    font-size: 1.3rem;
  }
}
/* Image Resizer Tool Styles */
body.image-resizer-page {
  background: linear-gradient(120deg, #eaf3ff 0%, #f8fafc 100%);
  min-height: 100vh;
}
.image-resizer-container {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(76,90,220,0.10);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
}
.image-resizer-container h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #1976d2;
  letter-spacing: 0.02em;
}
.image-resizer-container p {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.resizer-container {
  margin-top: 1.5rem;
}
.stats-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.stat-item {
  background: #165cc5;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(17, 38, 224, 0.07);
  padding: 1rem 1.2rem;
  text-align: center;
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #15528f;
  display: block;
  margin-bottom: 0.2rem;
}
.upload-area {
  margin-bottom: 1.5rem;
}
.upload-content {
  text-align: center;
  padding: 2rem 1rem;
  background: #e1e6eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
}
.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.upload-text {
  font-size: 1.2rem;
  font-weight: 600;
}
.upload-subtext {
  color: #666;
  margin-bottom: 1rem;
}
.browse-btn {
  background: #1976d2;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.browse-btn:hover {
  background: #1256a2;
}
.controls-panel {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.control-group {
  margin-bottom: 1.2rem;
}
.control-label {
  font-size: 1.08rem;
  color: #1976d2;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.preset-btn {
  background: #eaf3ff;
  color: #1976d2;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.preset-btn:hover {
  background: #d0e7ff;
}
.size-input {
  width: 230px;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #bcd;
  font-size: 1rem;
}
.quality-slider {
  width: 120px;
  margin: 0 0.5rem;
}
.quality-value {
  font-size: 1rem;
  color: #1976d2;
  font-weight: 600;
}
.format-select {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #bcd;
  font-size: 1rem;
}
.download-btn {
  background: #4A90E2;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1.08rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.download-btn:hover {
  background: #357abd;
  box-shadow: 0 4px 16px rgba(76,90,220,0.13);
}
.preview-section {
  margin-top: 2rem;
}
.preview-section h2 {
  font-size: 1.3rem;
  color: #1976d2;
  margin-bottom: 1rem;
}
.donation-section {
  text-align: center;
  margin: 2rem 0;
}
.donate-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff813f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 0.5rem;
}
.donate-btn:hover {
  background: #e86c1a;
}
@media (max-width: 600px) {
  .image-resizer-container {
    padding: 1rem 0.2rem 1.2rem 0.2rem;
  }
  .image-resizer-container h1 {
    font-size: 1.3rem;
  }
  .stat-number {
    font-size: 1.1rem;
  }
  .control-row {
    gap: 0.3rem;
  }
}
/* QR Code Generator Tool Styles */
body.qr-code-page {
  background: linear-gradient(120deg, #eaf3ff 0%, #f8fafc 100%);
  min-height: 100vh;
}
.qr-code-container {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(76,90,220,0.10);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
}
.qr-code-container h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #1976d2;
  letter-spacing: 0.02em;
}
.qr-code-container p {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.input-section {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.input-section label {
  font-size: 1.1rem;
  color: #1976d2;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.input-section input[type="text"] {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #bcd;
  margin: 0.5rem 0 1.2rem 0;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(76,90,220,0.07);
}
.examples-section h4 {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: #1976d2;
}
.example-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.example-btn {
  background: #eaf3ff;
  color: #1976d2;
  padding: 0.8rem 1.5rem;
  font-size: 1.08rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.example-btn:hover {
  background: #d0e7ff;
  box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}
.result-section {
  margin: 2rem 0 1rem 0;
  text-align: center;
}
.qr-actions {
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  max-width: 600px;
  margin: 2rem auto 1.5rem auto;
  padding: 2rem 1.5rem;
}
.qr-actions h3 {
  color: #1976d2;
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}
.action-buttons, .size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.action-btn, .size-btn, .download-btn, .print-btn, .copy-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1.08rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.size-btn.active {
  background: #1976d2;
  color: #fff;
  border: 2px solid #1256a2;
  box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}
.size-btn {
  background: #f8fafc;
  color: #1976d2;
}
.size-btn:hover {
  background: #eaf3ff;
  box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}
.download-btn {
  background: #4A90E2;
  color: #fff;
}
.download-btn:hover {
  background: #357abd;
  box-shadow: 0 4px 16px rgba(76,90,220,0.13);
}
.print-btn {
  background: #ffb347;
  color: #333;
}
.print-btn:hover {
  background: #ffd580;
}
.copy-btn {
  background: #eaf3ff;
  color: #1976d2;
}
.copy-btn:hover {
  background: #d0e7ff;
}
.size-options h4, .print-preview h4 {
  color: #1976d2;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.preview-options label {
  font-size: 1rem;
  margin-right: 1.2rem;
}
.donation-section {
  text-align: center;
  margin: 2rem 0;
}
.donate-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff813f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 0.5rem;
}
.donate-btn:hover {
  background: #e86c1a;
}
@media (max-width: 600px) {
  .qr-code-container {
    padding: 1rem 0.2rem 1.2rem 0.2rem;
  }
  .qr-code-container h1 {
    font-size: 1.3rem;
  }
  .action-btn, .size-btn, .download-btn, .print-btn, .copy-btn {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }
}
/* Text Case Converter Tool Styles */
body.text-case-page {
  background: linear-gradient(120deg, #e9ecec 0%, #f8fafc 100%);
  min-height: 100vh;
}
.text-case-container {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(76,90,220,0.10);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
}
.text-case-container h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #1976d2;
  letter-spacing: 0.02em;
}
.text-case-container p {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.input-section {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.input-section label {
  font-size: 1.1rem;
  color: #1976d2;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.input-section textarea {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #bcd;
  margin: 0.5rem 0 1.2rem 0;
  width: 100%;
  min-height: 100px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(76,90,220,0.07);
  resize: vertical;
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1rem;
}
.btn-primary {
  background: #1976d2;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1.08rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #1256a2;
  box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}
.donation-section {
  text-align: center;
  margin: 2rem 0;
}
.donate-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff813f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 0.5rem;
}
.donate-btn:hover {
  background: #e86c1a;
}
@media (max-width: 600px) {
  .text-case-container {
    padding: 1rem 0.2rem 1.2rem 0.2rem;
  }
  .text-case-container h1 {
    font-size: 1.3rem;
  }
  .btn-primary {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }
}
/* Donation Section Styles */
.donation-section {
  text-align: center;
  margin: 2rem 0;
}
.donate-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff813f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 0.5rem;
}
.donate-btn:hover {
  background: #e86c1a;
}
/* Word Counter Tool Styles */
body.word-counter-page {
  background: rgba(17, 30, 128, 0.07) !important;
  min-height: 100vh;
}
.word-counter-container {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  background: rgba(8, 8, 153, 0.07);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(4, 4, 198, 0.1);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
}
.word-counter-container h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #2b6eb2;
  letter-spacing: 0.02em;
}
.word-counter-container p {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 1.2rem;
}
.input-section {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.input-section label {
  font-size: 1.1rem;
  color: #1976d2;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.input-section textarea {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #bcd;
  margin: 0.5rem 0 1.2rem 0;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(76,90,220,0.07);
  resize: vertical;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.stat-card {
  background: #5755f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 0.8rem;
  text-align: center;
}
.stat-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1976d2;
  display: block;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 1.08rem;
  color: #333;
}
@media (max-width: 600px) {
  .word-counter-container {
    padding: 1rem 0.2rem 1.2rem 0.2rem;
  }
  .word-counter-container h1 {
    font-size: 1.3rem;
  }
  .stat-number {
    font-size: 1.3rem;
  }
}
/* Grocery List Tool Styles */
body.grocery-list-page {
  background: linear-gradient(120deg, #eaf3ff 0%, #f8fafc 100%);
  min-height: 100vh;
}
main.container {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(76,90,220,0.10);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
}
.tool-header {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(76,90,220,0.08);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 2rem;
  position: relative;
}
.tool-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #1976d2;
  letter-spacing: 0.02em;
}
.tool-header p {
  font-size: 1.08rem;
  color: #333;
  margin-bottom: 0.2rem;
}
.tool-icon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 2.5rem;
  opacity: 0.13;
  pointer-events: none;
}
.grocery-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0 1.5rem 0;
}
.grocery-mode-btn, .btn-primary, .btn-secondary, .grocery-meal-btn, .grocery-ingredient-btn, .grocery-btn-generate {
  padding: 1rem 2rem !important;
  font-size: 1.15rem !important;
  border-radius: 10px !important;
  font-weight: 600;
  margin: 0.4rem 0.3rem;
  box-shadow: 0 2px 8px rgba(76,90,220,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.grocery-mode-btn.active {
  background: #1976d2;
  color: #fff;
  border: 2px solid #1256a2;
  box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}
.grocery-mode-btn {
  background: #eaf3ff;
  color: #1976d2;
}
.grocery-mode-btn:hover {
  background: #d0e7ff;
  box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}
.btn-primary {
  background: #1976d2;
  color: #fff;
}
.btn-primary:hover {
  background: #1256a2;
  box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}
.btn-secondary {
  background: #f8fafc;
  color: #1976d2;
}
.btn-secondary:hover {
  background: #eaf3ff;
  box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}
.grocery-meal-btn, .grocery-ingredient-btn {
  background: #eaf3ff;
  color: #1976d2;
}
.grocery-meal-btn:hover, .grocery-ingredient-btn:hover {
  background: #d0e7ff;
  box-shadow: 0 4px 16px rgba(25,118,210,0.10);
}
.grocery-btn-generate {
  background: #4A90E2;
  color: #fff;
}
.grocery-btn-generate:hover {
  background: #357abd;
  box-shadow: 0 4px 16px rgba(76,90,220,0.13);
}
.grocery-input-group input[type="text"] {
  font-size: 1.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #bcd;
  margin: 0.5rem 0 1.2rem 0;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(76,90,220,0.07);
}
.grocery-input-section, .grocery-meal-list-section, .grocery-ingredient-list-section {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.grocery-meal-buttons, .grocery-ingredient-buttons, .grocery-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.grocery-input-section h3, .grocery-meal-list-section h3, .grocery-ingredient-list-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  color: #1976d2;
}
.grocery-results-section {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.grocery-results-header h3 {
  color: #1976d2;
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  main.container {
    padding: 1rem 0.2rem 1.2rem 0.2rem;
  }
  .tool-header {
    padding: 1rem 0.5rem 1rem 0.5rem;
  }
  .tool-header h1 {
    font-size: 1.3rem;
  }
  .tool-icon {
    font-size: 1.7rem;
    top: 0.7rem;
    right: 0.7rem;
  }
}
/* Mobile Navigation Fix (cleaned up, deduped) */
.navbar {
  position: relative;
}
.nav-container {
  position: relative;
 
}
.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1000;
  padding: 1rem 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
.nav-menu.active {
  display: flex;
  max-height: 500px;
  opacity: 1;
  overflow: visible;
}
.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100;
}
@media (min-width: 900px) {
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    padding: 0;
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
  .nav-toggle {
    display: none;
  }
}
@media (max-width: 900px) {
  .nav-menu {
    top: 60px;
    width: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 0;
  }
}
/* Excel Template Card Selected State */
.excel-template-card.selected {
  border: 2px solid #4A90E2;
  box-shadow: 0 4px 16px rgba(76,90,220,0.18);
  background: #eaf3ff;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: blue;
  color: #333;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation Bar */
.navbar {
  background: linear-gradient(90deg, #4A90E2 0%, #8a5bb9 100%);
  padding: 0.5rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin: 0 auto 1rem auto;
  max-width: 1200px;
}

.nav-container {
  
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.nav-brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  transition: color 0.3s;
}

.nav-brand:hover {
  color: #e0e0ff;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
 flex-wrap: wrap;
 
}

.nav-link {
 
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  color: #282828;
}

.nav-link:hover, .nav-link:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #e0e0ff;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    margin: 0;
    border-radius: 0;
  }
  .nav-container {
    
    align-items: flex-start;
  }
  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(135deg, #4A90E2 0%, #764ba2 100%);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin: 2rem auto;
  max-width: 1200px;
}

.hero-content {
  flex: 1;
  color: #fff;
  
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(45deg, #ffffff, #f0f8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* --- MOBILE DROPDOWN OVERRIDE: must be last for specificity --- */
@media (max-width: 700px) {
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
    border-radius: 0 0 12px 12px;
    display: none !important;
    z-index: 101;
  }
  .nav-menu.active, .nav-menu.open {
    display: flex !important;
  }
  .nav-search {
    min-width: 100px;
  }
  /* Hide dropdowns by default */
  .nav-menu .dropdown-menu {
    display: none !important;
    position: fixed;
    left: 0;
    top: 56px;
    width: 100vw;
    min-width: unset;
    max-width: 100vw;
    box-shadow: 0 8px 32px rgba(76,90,220,0.18);
    z-index: 1002;
    border-radius: 0 0 18px 18px;
    padding: 1.1rem 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
  }
  .nav-menu .dropdown.open > .dropdown-menu {
    display: block !important;
  }
  .nav-menu .dropdown.open > .dropdown-menu a {
    color: #222;
    background: transparent;
    pointer-events: auto;
  }
  .nav-menu .dropdown.open > .dropdown-menu a:hover,
  .nav-menu .dropdown.open > .dropdown-menu a:focus {
    background: #f0f6ff;
    color: #357ab8;
  }
}
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #141313;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-primary {
  background: rgba(7, 28, 215, 0.951);
  color: #fff;
  border: 2px solid rgba(16, 40, 219, 0.921);
}

.cta-primary:hover, .cta-primary:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cta-secondary {
  background:rgb(3, 47, 223);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover, .cta-secondary:focus {
  background: rgb(3, 47, 223);
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-tools {
  position: relative;
  width: 340px;
  height: 340px;
  z-index: 1;
}


.tool-icon {
  /* Restore default for all tool icons */
  position: static;
  font-size: 2.5rem;
  background: none;
  color: inherit;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  width: auto;
  height: auto;
  min-width: unset;
  min-height: unset;
  display: inline;
  align-items: unset;
  justify-content: unset;
  opacity: 1;
  transition: none;
}
/* Only style the floating icons in the hero section */
.floating-tools .tool-icon {
  position: absolute;
  font-size: 2.7rem;
  background: linear-gradient(135deg, #764ba2 60%, #667eea 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(76, 90, 220, 0.18), 0 1px 8px rgba(118, 75, 162, 0.12);
  min-width: 3.8rem;
  min-height: 3.8rem;
  width: 3.8rem;
  height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px #764ba2aa);
  animation: float 5s ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-icon:nth-child(1) { top: 10%; left: 50%; }
  .tool-icon:nth-child(2) { top: 10%; left: 80%; }
  .tool-icon:nth-child(3) { top: 80%; left: 80%; }
  .tool-icon:nth-child(4) { top: 80%; left: 20%; }
  .tool-icon:nth-child(5) { top: 50%; left: 10%; }
  .tool-icon:nth-child(6) { top: 50%; left: 90%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    /* keep text alignment as is */
    padding-left: 0;
    margin-left: 0;
    /* adjust right padding if needed */
    padding-right: 0.2rem;
    /* keep other padding as before */
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-right: 0;
    text-align: center;
    max-width: 768px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .cta-primary, .cta-secondary {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
  .hero-visual {
    margin-top: 2rem;
  }
  .floating-tools {
    width: 180px;
    height: 180px;
  }
  .tool-icon {
    font-size: 1.4rem;
    padding: 0.4rem;
    border-radius: 10px;
  }
}

/* Features Section */
.features-section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #666;
}

/* Tools Section */

.tools-section {
  padding: 3rem 0;
}

.section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tool-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tool-content p {
  color: #666;
  margin-bottom: 1rem;
}

.tool-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #e0e0ff;
  color: #4A90E2;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.tool-share-section {
  margin: 1rem 0;
}

.tool-share-btn {
  background: none;
  border: none;
  color: #4A90E2;
  font-size: 1.2rem;
  cursor: pointer;
}

.tool-actions {
  display: flex;
  justify-content: flex-end;
}

.tool-link {
  background: #4A90E2;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.tool-link:hover, .tool-link:focus {
  background: #357abd;
}

.featured-tool {
  background: linear-gradient(135deg, #4A90E2 0%, #764ba2 100%);
  color: #fff;
}

.featured-tool .tool-content p, .featured-tool .usage-count {
  color: #e0e0ff;
}

.viral-badge {
  background: #ff813f;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 3rem 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
  background: #f8f9fa;
  padding: 3rem 0;
  margin: 2rem 0;
  border-radius: 12px;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-content p {
  color: #666;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.form-group small {
  color: #666;
  font-size: 0.85rem;
}

.contact-section button {
  background: #4A90E2;
  color: #fff;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-section button:hover, .contact-section button:focus {
  background: #357abd;
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 6px;
}

.form-error {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 6px;
}

/* Share Modal */
.share-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.share-modal {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.share-modal-header h3 {
  font-size: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.share-buttons-modal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn-modal {
  background: #4A90E2;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.share-btn-modal:hover, .share-btn-modal:focus {
  background: #357abd;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4A90E2;
  color: #fff;
  padding: 1rem;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s;
}

.notification.show {
  opacity: 1;
}

/* Footer */
.site-footer {
  background: #f4f4f4;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e0e0e0;
}

.footer-content a {
  color: #4A90E2;
  text-decoration: none;
}

.footer-content a:hover, .footer-content a:focus {
  text-decoration: underline;
}

/* Animations */
.animate-in {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PWA Install Banner Styles */
.pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #4A90E2 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 -2px 16px rgba(76,90,220,0.15);
  border-radius: 16px 16px 0 0;
  padding: 0.7rem 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.pwa-install-banner .install-content {
  padding: 0;
}
.pwa-install-banner .install-text {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.pwa-install-banner .install-buttons {
  gap: 0.7rem;
}
.pwa-install-banner .install-btn {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}
.pwa-install-banner .dismiss-btn {
  font-size: 1.2rem;
  padding: 0 0.5rem;
}

/* PWA Install Modal Styles */
.install-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 44, 66, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-modal-content {
  background: #fff;
  color: #333;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 4px 24px rgba(76,90,220,0.15);
  text-align: left;
  position: relative;
}
.install-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}
.install-modal-ok {
  background: #4A90E2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.2rem;
}
/* PWA Update Notification Styles */
.update-notification, .auto-update-notification {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%) scale(0.95);
  background: #4A90E2;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(76,90,220,0.15);
  padding: 1rem 2rem;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.update-notification.show, .auto-update-notification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
.update-content, .auto-update-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.update-btn {
  background: #ff813f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 1rem;
}
.dismiss-btn {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* PDF and print helpers */
.page-break {
  page-break-before: always;
  break-before: page;
}
.calendar-container {
  page-break-inside: avoid;
  break-inside: avoid;
}
.calendar-table {
  page-break-inside: avoid;
  break-inside: avoid;
}
.calendar-table thead {
  display: table-header-group;
}

.word-counter-container {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: #764ba2 !important;
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(76,90,220,0.13);
  padding: 2.7rem 2.2rem 2.2rem 2.2rem;
  position: relative;
  z-index: 1;
}
.word-counter-container h1 {
  font-size: 2.2rem;
  color: white;
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.word-counter-container p {
  color: #333;
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 1.7rem;
}
.input-section {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 2rem;
}
.input-section label {
  font-size: 1.09rem;
  color: #1976d2;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
}
.input-section textarea {
  width: 100%;
  font-size: 1.15rem;
  padding: 1.1rem;
  border-radius: 10px;
  border: 1px solid #bcd;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  background: #fafdff;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.3rem;
  margin-bottom: 1.5rem;
  margin-top: 1.2rem;
}
.stat-card {
  
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.07);
  padding: 1.3rem 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-number {
  font-size: 2.1rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 1.08rem;
  color: #ffffff;
}
.donation-section {
  background: #eaf3ff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(76,90,220,0.08);
  padding: 1.3rem;
  margin-top: 2.2rem;
  text-align: center;
}
.donate-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff813f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 0.7rem;
}
.donate-btn:hover {
  background: #e76a1a;
}
@media (max-width: 700px) {
  .word-counter-container {
    padding: 1.2rem 0.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
    .input-section {
      padding: 1rem 0.5rem 0.7rem 0.5rem;
    }
  }
  .progress-chart-bar {
  background-color: white !important;
  border: 2px solid #000 !important;
  }
  .selector-label {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: bold;
}
