.scroll-to-top-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.scroll-to-top-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-button:active {
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .scroll-to-top-button {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}
.dark-mode-toggle {
  background: none;
  border: 2px solid #e5e7eb;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1rem;
  position: relative;
}

.dark-mode-toggle:hover {
  border-color: #2563eb;
  border-color: var(--primary-color, #2563eb);
  transform: scale(1.05);
}

.dark-mode-toggle:active {
  transform: scale(0.95);
}

.toggle-icon {
  font-size: 18px;
  display: block;
  transition: transform 0.3s ease;
}

.dark-mode-toggle:hover .toggle-icon {
  transform: rotate(15deg);
}

/* Dark mode styles */
.dark-mode .dark-mode-toggle {
  border-color: #374151;
  border-color: var(--dark-border-color, #374151);
  background-color: #1f2937;
  background-color: var(--dark-surface-color, #1f2937);
}

.dark-mode .dark-mode-toggle:hover {
  border-color: #60a5fa;
  border-color: var(--dark-primary-color, #60a5fa);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .dark-mode-toggle {
    width: 36px;
    height: 36px;
    margin-left: 0.5rem;
  }
  
  .toggle-icon {
    font-size: 16px;
  }
}
.navbar {
  background: var(--surface-color);
  box-shadow: 0 2px 4px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-brand:hover {
  text-decoration: none;
  color: var(--primary-color);
}

.navbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1;
  max-width: 400px;
  margin: 0 20px;
}

.search-input {
  flex: 1 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--input-bg);
  color: var(--text-color);
  transition: background-color 0.3s ease, border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
  padding: 8px 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-btn:hover {
  background: var(--primary-hover);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
  cursor: pointer;
}

.navbar-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.dropdown {
  position: relative;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-hover);
  min-width: 250px;
  z-index: 1000;
  margin-top: 0.5rem;
  transition: background-color 0.3s ease;
}

.dropdown-link {
  display: block;
  padding: 12px 16px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-link:hover {
  background-color: var(--border-light);
  text-decoration: none;
  color: var(--text-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-color);
  margin-left: 0.5rem;
}

.mobile-nav {
  display: none;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  transition: background-color 0.3s ease;
}

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Layout for navbar right section */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .navbar-right {
    display: none;
  }
  
  .mobile-controls {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .navbar-search {
    margin: 10px 0;
    order: 3;
    flex-basis: 100%;
  }
  
  .navbar-content {
    flex-wrap: wrap;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
}
.image-navigation {
  padding: 2rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
}

.nav-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.nav-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.nav-header p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.category-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  color: #333;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 2px solid transparent;
  cursor: pointer;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--card-color);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.calculator-count {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--card-color), var(--card-color));
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.featured-calculators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.featured-tag {
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 0.75rem;
  text-transform: capitalize;
  color: #6b7280;
}

.card-hover-content {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s;
}

.category-card:hover .card-hover-content {
  opacity: 1;
  transform: translateX(0);
}

.explore-text {
  color: var(--card-color);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Quick Access Section */
.quick-access-section {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quick-access-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.trending-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.trending-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.trending-item:hover {
  background: white;
  border-color: #3b82f6;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.trend-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.trend-badge {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-header h2 {
    font-size: 1.75rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trending-list {
    grid-template-columns: 1fr;
  }
  
  .category-card {
    padding: 1.5rem;
  }
  
  .card-icon {
    font-size: 2rem;
  }
}
.category-page {
  padding: 40px 0;
}

.category-header {
  text-align: center;
  margin-bottom: 60px;
}

.category-icon-large {
  font-size: 4rem;
  margin-bottom: 20px;
}

.category-header h1 {
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 12px;
}

.category-header p {
  font-size: 1.1rem;
  color: #6b7280;
}

.calculators-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  grid-gap: 30px;
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.calc-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: block;
}

.calc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.calc-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.calc-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

.calc-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.calc-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #3b82f6;
}

.calc-card:hover .calc-arrow {
  opacity: 1;
}

.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page h1 {
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.error-page p {
  color: #6b7280;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
  color: white;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .category-page {
    padding: 20px 0;
  }
  
  .category-header {
    margin-bottom: 40px;
  }
  
  .category-header h1 {
    font-size: 2rem;
  }
  
  .category-icon-large {
    font-size: 3rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .calc-card {
    padding: 20px;
  }
}
/* CSS Variables for Light Mode */
:root {
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-color: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --input-bg: #ffffff;
  --results-bg: #f0f9ff;
  --results-border: #e0f2fe;
  --results-text: #0369a1;
}

/* CSS Variables for Dark Mode */
.dark-mode {
  --bg-color: #0f172a;
  --surface-color: #1e293b;
  --text-color: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --primary-color: #60a5fa;
  --primary-hover: #3b82f6;
  --border-color: #475569;
  --border-light: #64748b;
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-hover: rgba(0, 0, 0, 0.6);
  --input-bg: #1e293b;
  --results-bg: #1e293b;
  --results-border: #475569;
  --results-text: #60a5fa;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Force scroll to top on navigation */
html {
  scroll-behavior: auto !important;
}

html, body {
  scroll-behavior: auto !important;
  position: relative;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8fafc;
  background-color: var(--bg-color);
  color: #111827;
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive Grid */
.grid {
  display: grid;
  grid-gap: 20px;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: #2563eb;
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #e5e7eb;
  background-color: var(--border-color);
  color: #111827;
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: #f3f4f6;
  background-color: var(--border-light);
}

/* Card Styles */
.card {
  background: #ffffff;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  color: var(--text-color);
  margin-bottom: 8px;
}

.card-description {
  color: #6b7280;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #111827;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  background-color: #ffffff;
  background-color: var(--input-bg);
  color: #111827;
  color: var(--text-color);
  transition: border-color 0.2s ease, background-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  background-color: #ffffff;
  background-color: var(--input-bg);
  color: #111827;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.2s ease;
}

/* Results */
.results {
  background: #f0f9ff;
  background: var(--results-bg);
  border: 1px solid #e0f2fe;
  border: 1px solid var(--results-border);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.results h3 {
  color: #0369a1;
  color: var(--results-text);
  margin-bottom: 16px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0f2fe;
  border-bottom: 1px solid var(--results-border);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 500;
  color: #111827;
  color: var(--text-color);
}

.result-value {
  font-weight: 600;
  color: #0369a1;
  color: var(--results-text);
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  background: #ffffff;
  background: var(--surface-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navbar-link {
  color: #111827;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-link:hover {
  color: #2563eb;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 16px;
  color: #f9fafb;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .navbar-nav {
    gap: 20px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .card-body {
    padding: 16px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Premium Calculator Styles - Professional Look */

.premium-calculator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.premium-calculator > * {
  background: white;
  border-radius: 21px;
}

.calculator-header {
  text-align: center;
  padding: 2rem;
  border-bottom: 2px solid #f3f4f6;
}

.calculator-header h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.calculator-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
}

/* Calculation Type Selector */
.calculation-type-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: #f9fafb;
  padding: 0.5rem;
  border-radius: 12px;
}

.type-option {
  flex: 1 1;
  display: block;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.type-option:hover {
  background: white;
  border-color: #e5e7eb;
}

.type-option.active {
  background: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.type-option input {
  display: none;
}

.type-option span {
  font-weight: 600;
  color: #374151;
}

.type-option.active span {
  color: #667eea;
}

/* Large Input Styles */
.large-input {
  font-size: 1.5rem !important;
  padding: 1rem !important;
  font-weight: 600;
  border: 3px solid #e5e7eb !important;
}

.large-input:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Premium Results */
.premium-results {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 2rem;
  border-radius: 16px;
}

.result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.result-card.highlight {
  border: 2px solid #667eea;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.result-card label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value.large {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.result-value.vat-amount {
  color: #f59e0b;
}

.result-value.total {
  color: #10b981;
}

/* Projections Section */
.projections-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.projection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.projection-item {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
}

.projection-item label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.projection-item span {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}

/* Alert Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-warning {
  background: #fef3c7;
  border: 2px solid #fbbf24;
  color: #92400e;
}

.alert strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Show Work Button */
.show-work-button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.show-work-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Calculation Steps */
.calculation-steps {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  border: 2px solid #e5e7eb;
}

.calculation-steps h4 {
  color: #667eea;
  margin-bottom: 1rem;
}

.step {
  padding: 0.75rem;
  background: #f9fafb;
  border-left: 4px solid #667eea;
  margin-bottom: 0.75rem;
  font-family: 'Courier New', monospace;
}

/* Info Grid */
.premium-info {
  margin-top: 3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
  gap: 2rem;
  margin-bottom: 2rem;
}

.info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th {
  background: #f9fafb;
  padding: 0.75rem;
  text-align: left;
  font-size: 0.875rem;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}

.info-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

/* Widget Section */
.widget-section {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}

.widget-section h3 {
  color: #374151;
  margin-bottom: 1rem;
}

.embed-code {
  display: block;
  background: #1f2937;
  color: #10b981;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  margin-top: 1rem;
  overflow-x: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .calculator-header h1 {
    font-size: 1.75rem;
  }
  
  .result-cards {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .projection-grid {
    grid-template-columns: 1fr;
  }
  
  .calculation-type-selector {
    flex-direction: column;
  }
}
/* Dark Mode Color Palette Fix - Improved visibility and contrast */

/* Enhanced Dark Mode Variables */
.dark-mode {
  /* Primary backgrounds */
  --bg-color: #0f172a;
  --surface-color: #1e293b;
  --surface-hover: #263244;
  --surface-active: #334155;
  
  /* Text colors with better contrast */
  --text-color: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  /* Primary colors adjusted for dark mode */
  --primary-color: #60a5fa;
  --primary-hover: #3b82f6;
  --primary-light: #93c5fd;
  --primary-dark: #2563eb;
  
  /* Semantic colors */
  --success-color: #4ade80;
  --warning-color: #fbbf24;
  --error-color: #f87171;
  --info-color: #60a5fa;
  
  /* Borders with better visibility */
  --border-color: #475569;
  --border-light: #64748b;
  --border-focus: #60a5fa;
  
  /* Shadows for dark mode */
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-hover: rgba(0, 0, 0, 0.6);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  
  /* Form elements */
  --input-bg: #1e293b;
  --input-border: #475569;
  --input-text: #f1f5f9;
  --input-placeholder: #94a3b8;
  --input-focus-bg: #263244;
  
  /* Results section */
  --results-bg: #1e293b;
  --results-border: #475569;
  --results-text: #60a5fa;
  --results-value: #4ade80;
  
  /* Calculator specific */
  --calc-display-bg: #0f172a;
  --calc-button-bg: #334155;
  --calc-button-hover: #475569;
  --calc-button-text: #f1f5f9;
  
  /* Code blocks */
  --code-bg: #0f172a;
  --code-text: #4ade80;
  --code-border: #334155;
}

/* Fix text visibility in dark mode */
.dark-mode {
  color: var(--text-color);
}

/* Ensure all text elements are visible */
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
  color: var(--text-color);
}

.dark-mode p,
.dark-mode span,
.dark-mode div,
.dark-mode li,
.dark-mode td,
.dark-mode th {
  color: inherit;
}

/* Fix form inputs in dark mode */
.dark-mode input[type="text"],
.dark-mode input[type="number"],
.dark-mode input[type="email"],
.dark-mode input[type="password"],
.dark-mode input[type="date"],
.dark-mode input[type="time"],
.dark-mode input[type="search"],
.dark-mode textarea,
.dark-mode select {
  background-color: var(--input-bg);
  color: var(--input-text);
  border-color: var(--input-border);
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}

.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
  background-color: var(--input-focus-bg);
  border-color: var(--input-focus-bg);
  color: var(--input-text);
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Fix labels */
.dark-mode label {
  color: var(--text-color);
}

/* Fix buttons */
.dark-mode button,
.dark-mode .btn {
  color: var(--text-color);
  border-color: var(--border-color);
}

.dark-mode .btn-primary {
  background-color: var(--primary-color);
  color: var(--text-inverse);
  border-color: var(--primary-color);
}

.dark-mode .btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.dark-mode .btn-secondary {
  background-color: var(--surface-active);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.dark-mode .btn-secondary:hover {
  background-color: var(--calc-button-hover);
  border-color: var(--border-light);
}

/* Fix cards */
.dark-mode .card {
  background-color: var(--surface-color);
  border-color: var(--border-color);
  color: var(--text-color);
}

.dark-mode .card-header {
  background-color: var(--surface-active);
  border-color: var(--border-color);
  color: var(--text-color);
}

.dark-mode .card-title {
  color: var(--text-color);
}

.dark-mode .card-description {
  color: var(--text-secondary);
}

/* Fix tables */
.dark-mode table {
  background-color: var(--surface-color);
  color: var(--text-color);
}

.dark-mode th {
  background-color: var(--surface-active);
  color: var(--text-color);
  border-color: var(--border-color);
}

.dark-mode td {
  color: var(--text-color);
  border-color: var(--border-color);
}

.dark-mode tr:hover {
  background-color: var(--surface-hover);
}

/* Fix navigation */
.dark-mode .navbar {
  background-color: var(--surface-color);
  border-color: var(--border-color);
}

.dark-mode .navbar-link {
  color: var(--text-color);
}

.dark-mode .navbar-link:hover {
  color: var(--primary-color);
}

.dark-mode .navbar-brand {
  color: var(--primary-color);
}

/* Fix dropdowns */
.dark-mode .dropdown-menu {
  background-color: var(--surface-color);
  border-color: var(--border-color);
}

.dark-mode .dropdown-item {
  color: var(--text-color);
}

.dark-mode .dropdown-item:hover {
  background-color: var(--surface-hover);
  color: var(--primary-color);
}

/* Fix results section */
.dark-mode .results {
  background-color: var(--results-bg);
  border-color: var(--results-border);
}

.dark-mode .results h3 {
  color: var(--primary-color);
}

.dark-mode .result-label {
  color: var(--text-color);
}

.dark-mode .result-value {
  color: var(--results-value);
}

/* Fix calculator display */
.dark-mode .calculator-display {
  background-color: var(--calc-display-bg);
  color: var(--text-color);
  border-color: var(--border-color);
}

.dark-mode .calculator-button {
  background-color: var(--calc-button-bg);
  color: var(--calc-button-text);
  border-color: var(--border-color);
}

.dark-mode .calculator-button:hover {
  background-color: var(--calc-button-hover);
}

/* Fix alerts and notifications */
.dark-mode .alert {
  background-color: var(--surface-color);
  color: var(--text-color);
  border-color: var(--border-color);
}

.dark-mode .alert-success {
  background-color: rgba(74, 222, 128, 0.1);
  color: var(--success-color);
  border-color: var(--success-color);
}

.dark-mode .alert-warning {
  background-color: rgba(251, 191, 36, 0.1);
  color: var(--warning-color);
  border-color: var(--warning-color);
}

.dark-mode .alert-error {
  background-color: rgba(248, 113, 113, 0.1);
  color: var(--error-color);
  border-color: var(--error-color);
}

/* Fix tooltips */
.dark-mode .tooltip {
  background-color: var(--surface-active);
  color: var(--text-color);
  border-color: var(--border-color);
}

/* Fix modals */
.dark-mode .modal {
  background-color: var(--surface-color);
  color: var(--text-color);
}

.dark-mode .modal-header {
  background-color: var(--surface-active);
  border-color: var(--border-color);
}

.dark-mode .modal-footer {
  background-color: var(--surface-active);
  border-color: var(--border-color);
}

/* Fix code blocks */
.dark-mode code,
.dark-mode pre {
  background-color: var(--code-bg);
  color: var(--code-text);
  border-color: var(--code-border);
}

/* Fix links */
.dark-mode a {
  color: var(--primary-color);
}

.dark-mode a:hover {
  color: var(--primary-hover);
}

/* Fix footer - keep it dark in both modes */
.footer {
  background: #0f172a !important;
  color: #f1f5f9 !important;
}

.footer a {
  color: #94a3b8 !important;
}

.footer a:hover {
  color: #60a5fa !important;
}

/* Fix specific calculator elements */
.dark-mode .info-table th {
  background-color: var(--surface-active);
  color: var(--text-color);
}

.dark-mode .info-table td {
  color: var(--text-color);
  border-color: var(--border-color);
}

.dark-mode .calculation-type-selector {
  background-color: var(--surface-color);
}

.dark-mode .type-option {
  color: var(--text-color);
}

.dark-mode .type-option.active {
  background-color: var(--surface-active);
  border-color: var(--primary-color);
}

.dark-mode .type-option.active span {
  color: var(--primary-color);
}

/* Fix premium calculator styles */
.dark-mode .premium-calculator {
  background: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 100%);
}

.dark-mode .premium-calculator > * {
  background: var(--surface-color);
}

.dark-mode .calculator-header h1 {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-mode .calculator-subtitle {
  color: var(--text-secondary);
}

.dark-mode .premium-results {
  background: var(--surface-color);
}

.dark-mode .result-card {
  background: var(--surface-active);
  color: var(--text-color);
}

.dark-mode .result-card.highlight {
  border-color: var(--primary-color);
  background: var(--surface-active);
}

.dark-mode .projection-item {
  background: var(--surface-active);
  color: var(--text-color);
}

.dark-mode .info-card {
  background: var(--surface-color);
  color: var(--text-color);
}

/* Ensure all text remains visible */
.dark-mode * {
  color: inherit;
}

/* Override any hardcoded colors */
.dark-mode [style*="color: black"],
.dark-mode [style*="color: #000"],
.dark-mode [style*="color: #111"],
.dark-mode [style*="color: #222"],
.dark-mode [style*="color: #333"] {
  color: var(--text-color) !important;
}

.dark-mode [style*="background-color: white"],
.dark-mode [style*="background-color: #fff"],
.dark-mode [style*="background-color: #fafafa"],
.dark-mode [style*="background-color: #f5f5f5"] {
  background-color: var(--surface-color) !important;
}

/* Smooth transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Calculator Input Box Fixes - Make them MUCH larger and more readable */

/* AGGRESSIVE FIX for ALL calculator input fields */
.calculator-container input,
.calculator-container select,
.calculator-container textarea,
.calculator input,
.calculator select,
.calculator textarea,
.input-group input,
.input-group select,
.form-control,
.calc-input,
.form-input,
.input-field,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="password"],
select,
textarea {
  min-height: 56px !important;
  height: auto !important;
  padding: 16px 20px !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  color: #2d3748 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  appearance: none !important;
}

/* Ensure select boxes are large enough */
.calculator-container select,
.calculator select,
select.calc-input,
select.form-input {
  min-height: 48px !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%236b7280%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 20px !important;
  padding-right: 44px !important;
}

/* Focus states */
.calculator-container input:focus,
.calculator-container select:focus,
.calculator-container textarea:focus,
.calculator input:focus,
.calculator select:focus,
.calculator textarea:focus,
.calc-input:focus,
.form-input:focus {
  outline: none !important;
  border-color: #2563eb !important;
  border-color: var(--primary-color, #2563eb) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Number inputs - remove spinner on small screens, make it bigger on desktop */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: 40px !important;
  opacity: 1 !important;
}

/* Placeholder text */
.calculator-container input::placeholder,
.calculator-container select::placeholder,
.calculator-container textarea::placeholder,
.calculator input::placeholder,
.calculator select::placeholder,
.calculator textarea::placeholder {
  color: #9ca3af !important;
  color: var(--text-muted, #9ca3af) !important;
  font-size: 14px !important;
}

/* Labels above inputs */
.calculator-container label,
.calculator label,
.calc-label,
.form-label,
.input-label {
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  color: var(--text-secondary, #6b7280) !important;
}

/* Input groups */
.input-group,
.calc-input-group,
.form-group {
  margin-bottom: 20px !important;
}

/* Checkbox and radio buttons */
.calculator-container input[type="checkbox"],
.calculator-container input[type="radio"],
.calculator input[type="checkbox"],
.calculator input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin-right: 10px !important;
  cursor: pointer !important;
}

/* Checkbox and radio labels */
.calculator-container input[type="checkbox"] + label,
.calculator-container input[type="radio"] + label,
.calculator input[type="checkbox"] + label,
.calculator input[type="radio"] + label {
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  font-size: 16px !important;
  margin-bottom: 0 !important;
}

/* Button sizing */
.calculator-container button,
.calculator button,
.calc-button,
.btn-calculate {
  min-height: 48px !important;
  padding: 12px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

/* Range sliders */
.calculator-container input[type="range"],
.calculator input[type="range"] {
  width: 100% !important;
  height: 8px !important;
  border-radius: 4px !important;
  background: #e5e7eb !important;
  background: var(--border-color, #e5e7eb) !important;
}

.calculator-container input[type="range"]::-webkit-slider-thumb,
.calculator input[type="range"]::-webkit-slider-thumb {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #2563eb !important;
  background: var(--primary-color, #2563eb) !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
}

/* Textarea specific */
.calculator-container textarea,
.calculator textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .calculator-container input,
  .calculator-container select,
  .calculator-container textarea,
  .calculator input,
  .calculator select,
  .calculator textarea,
  .calc-input,
  .form-input {
    font-size: 18px !important; /* Larger on mobile to prevent zoom */
    min-height: 52px !important;
    padding: 14px 16px !important;
  }

  .calculator-container button,
  .calculator button,
  .calc-button,
  .btn-calculate {
    min-height: 52px !important;
    font-size: 18px !important;
  }
}

/* Dark mode specific adjustments */
.dark-mode .calculator-container input,
.dark-mode .calculator-container select,
.dark-mode .calculator-container textarea,
.dark-mode .calculator input,
.dark-mode .calculator select,
.dark-mode .calculator textarea {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}

.dark-mode .calculator-container input:focus,
.dark-mode .calculator-container select:focus,
.dark-mode .calculator-container textarea:focus,
.dark-mode .calculator input:focus,
.dark-mode .calculator select:focus,
.dark-mode .calculator textarea:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1) !important;
}

/* Fix for inline inputs that might be too small */
.calculator-container .inline-input,
.calculator .inline-input,
.small-input {
  min-width: 100px !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  font-size: 15px !important;
}

/* Ensure all inputs are readable */
.calculator-container *,
.calculator * {
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
       text-size-adjust: 100% !important;
}
/* CRITICAL INPUT FIX - FORCE ALL INPUTS TO BE LARGE AND VISIBLE */

/* UNIVERSAL INPUT OVERRIDE - MAXIMUM PRIORITY */
* input:not([type="checkbox"]):not([type="radio"]),
* select,
* textarea,
body input:not([type="checkbox"]):not([type="radio"]),
body select,
body textarea,
#root input:not([type="checkbox"]):not([type="radio"]),
#root select,
#root textarea,
.App input:not([type="checkbox"]):not([type="radio"]),
.App select,
.App textarea {
  min-height: 56px !important;
  height: 56px !important;
  padding: 15px 20px !important;
  font-size: 18px !important;
  line-height: 26px !important;
  box-sizing: border-box !important;
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
       text-size-adjust: 100% !important;
}

/* Textarea specific height */
* textarea,
body textarea,
#root textarea,
.App textarea {
  height: auto !important;
  min-height: 120px !important;
}

/* Select boxes need special handling */
* select,
body select,
#root select,
.App select {
  padding-right: 45px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23333333%27 stroke-width=%272%27%3E%3Cpolyline points=%276 9 12 15 18 9%27%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 20px !important;
  appearance: none !important;
}

/* FORCE readable text size */
* input:not([type="checkbox"]):not([type="radio"]),
* select,
* textarea {
  font-size: 18px !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  border: 2px solid #d1d5db !important;
  border-radius: 8px !important;
}

/* Focus states */
* input:not([type="checkbox"]):not([type="radio"]):focus,
* select:focus,
* textarea:focus {
  border-color: #2563eb !important;
  outline: 3px solid rgba(37, 99, 235, 0.1) !important;
  outline-offset: 0 !important;
}

/* Placeholder text */
* input::placeholder,
* textarea::placeholder {
  font-size: 16px !important;
  color: #9ca3af !important;
}

/* Number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: 56px !important;
  opacity: 1 !important;
}

/* Mobile specific - even larger */
@media (max-width: 768px) {
  * input:not([type="checkbox"]):not([type="radio"]),
  * select,
  * textarea,
  body input:not([type="checkbox"]):not([type="radio"]),
  body select,
  body textarea {
    min-height: 60px !important;
    height: 60px !important;
    padding: 16px 20px !important;
    font-size: 20px !important;
  }

  * textarea {
    height: auto !important;
    min-height: 130px !important;
  }
}

/* Checkboxes and radio buttons */
input[type="checkbox"],
input[type="radio"] {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  cursor: pointer !important;
}

/* Labels */
label {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  display: block !important;
  color: #374151 !important;
}

/* OVERRIDE any inline styles */
[style*="height"] input:not([type="checkbox"]):not([type="radio"]),
[style*="height"] select {
  height: 56px !important;
  min-height: 56px !important;
}

[style*="font-size"] input:not([type="checkbox"]):not([type="radio"]),
[style*="font-size"] select,
[style*="font-size"] textarea {
  font-size: 18px !important;
}

[style*="padding"] input:not([type="checkbox"]):not([type="radio"]),
[style*="padding"] select,
[style*="padding"] textarea {
  padding: 15px 20px !important;
}

/* Dark mode support */
.dark-mode input:not([type="checkbox"]):not([type="radio"]),
.dark-mode select,
.dark-mode textarea,
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: #1f2937 !important;
  color: #f3f4f6 !important;
  border-color: #4b5563 !important;
}

.dark-mode input:not([type="checkbox"]):not([type="radio"]):focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
  border-color: #60a5fa !important;
  outline-color: rgba(96, 165, 250, 0.1) !important;
}

/* ABSOLUTE LAST RESORT - Use !important on everything */
input, select, textarea {
  min-height: 56px !important;
}

/* Specific calculator page overrides */
.calculator-form input:not([type="checkbox"]):not([type="radio"]),
.calculator-form select,
.calculator-form textarea,
.calc-form input:not([type="checkbox"]):not([type="radio"]),
.calc-form select,
.calc-form textarea {
  min-height: 56px !important;
  height: 56px !important;
  padding: 15px 20px !important;
  font-size: 18px !important;
}
/* ULTIMATE FIX - FORCE ALL INPUTS TO BE LARGE - NO EXCEPTIONS */

/* Target EVERYTHING that could be an input */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select,
textarea,
[type="text"],
[type="number"],
[type="email"],
[type="tel"],
[type="date"],
[type="time"],
[type="search"],
[type="password"],
[type="url"],
.form-control,
.form-input,
.calc-input,
.input-field,
.calculator-input,
.converter-input {
  min-height: 60px !important;
  height: 60px !important;
  padding: 18px 24px !important;
  font-size: 20px !important;
  line-height: 24px !important;
  box-sizing: border-box !important;
  border: 2px solid #cbd5e0 !important;
  border-radius: 10px !important;
  background-color: #ffffff !important;
  color: #1a202c !important;
  width: 100% !important;
  display: block !important;
  appearance: none !important;
}

/* Special handling for Unit Converter */
.unit-converter input,
.unit-converter select,
.converter-container input,
.converter-container select,
#unit-converter input,
#unit-converter select,
[class*="converter"] input:not([type="checkbox"]):not([type="radio"]),
[class*="converter"] select,
[class*="Converter"] input:not([type="checkbox"]):not([type="radio"]),
[class*="Converter"] select {
  min-height: 65px !important;
  height: 65px !important;
  padding: 20px 26px !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}

/* Select dropdowns need arrow */
select {
  padding-right: 50px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2730%27 height=%2730%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000000%27 stroke-width=%272.5%27%3E%3Cpolyline points=%276 9 12 15 18 9%27%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  background-size: 24px !important;
  cursor: pointer !important;
}

/* Number inputs - make sure numbers are visible */
input[type="number"] {
  -moz-appearance: textfield !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif !important;
  font-weight: 500 !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Textarea should be taller */
textarea {
  height: auto !important;
  min-height: 140px !important;
  resize: vertical !important;
}

/* Focus states */
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #4299e1 !important;
  box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15) !important;
  background-color: #f7fafc !important;
}

/* Hover states */
input:not([type="checkbox"]):not([type="radio"]):hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
  border-color: #a0aec0 !important;
  background-color: #fafbfc !important;
}

/* Placeholder text */
input::placeholder,
textarea::placeholder {
  color: #a0aec0 !important;
  font-size: 18px !important;
  opacity: 1 !important;
}

/* Labels */
label {
  display: block !important;
  margin-bottom: 10px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
}

/* Mobile - even bigger */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  select,
  textarea {
    min-height: 65px !important;
    height: 65px !important;
    padding: 20px 24px !important;
    font-size: 22px !important;
  }

  /* Unit converter on mobile */
  .unit-converter input,
  .unit-converter select,
  [class*="converter"] input,
  [class*="converter"] select {
    min-height: 70px !important;
    height: 70px !important;
    font-size: 24px !important;
  }
}

/* Dark mode support */
.dark-mode input:not([type="checkbox"]):not([type="radio"]),
.dark-mode select,
.dark-mode textarea,
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: #2d3748 !important;
  color: #f7fafc !important;
  border-color: #4a5568 !important;
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
  color: #718096 !important;
}

/* Checkboxes and radios */
input[type="checkbox"],
input[type="radio"] {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  margin-right: 12px !important;
  cursor: pointer !important;
  vertical-align: middle !important;
}

/* Buttons should also be large */
button,
input[type="submit"],
input[type="button"],
.btn,
.button {
  min-height: 56px !important;
  padding: 16px 32px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

/* OVERRIDE ANY INLINE STYLES */
[style*="height"]:is(input:not([type="checkbox"]):not([type="radio"]), select) {
  height: 60px !important;
  min-height: 60px !important;
}

[style*="font-size"]:is(input, select, textarea) {
  font-size: 20px !important;
}

[style*="padding"]:is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  padding: 18px 24px !important;
}

/* ABSOLUTE OVERRIDE - Maximum specificity */
html body * input:not([type="checkbox"]):not([type="radio"]),
html body * select,
html body * textarea {
  min-height: 60px !important;
  font-size: 20px !important;
  padding: 18px 24px !important;
}

/* Fix for inline/small inputs */
.inline-input,
.small-input,
.compact-input {
  min-height: 50px !important;
  height: 50px !important;
  padding: 14px 18px !important;
  font-size: 18px !important;
}

/* Ensure text is always visible */
input, select, textarea {
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: #1a202c !important;
}

/* Fix for specific converter inputs */
.converter-from input,
.converter-to input,
.from-input,
.to-input,
#from-value,
#to-value,
[name*="from"],
[name*="to"],
[id*="from"],
[id*="to"] {
  min-height: 65px !important;
  height: 65px !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  text-align: center !important;
}
/* FIX CALCULATOR LAYOUT - Remove unnecessary two-column split */

/* Force single column layout for calculator forms */
.calculator-content {
  display: block !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  grid-template-columns: none !important;
}

/* Make calculator form take full width */
.calculator-form,
.calc-form,
.form-container,
.calculator-wrapper {
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 2rem !important;
}

/* Remove any grid or flex layouts that split the page */
.calculator-container > div,
.calculator-page > div,
.calc-wrapper > div {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}

/* Results section should be below form, not beside */
.calculator-results,
.calc-results,
.results-section,
.results-container {
  width: 100% !important;
  max-width: 800px !important;
  margin: 2rem auto !important;
  display: block !important;
}

/* Remove any unnecessary white space on the right */
.calculator-container,
.calculator-page,
.calc-container,
#root > div > main,
.main-content {
  display: block !important;
  overflow-x: hidden !important;
}

/* Specific fix for grid layouts */
@media (min-width: 768px) {
  .calculator-content {
    grid-template-columns: 1fr !important;
  }
}

/* Fix for flex layouts */
.calculator-content[style*="display: flex"],
.calculator-content[style*="display:flex"] {
  flex-direction: column !important;
  align-items: center !important;
}

/* Remove any side panels or info boxes that create columns */
.calculator-info,
.side-panel,
.info-panel,
.help-panel {
  display: none !important;
}

/* If there's a two-column layout class, override it */
.two-column,
.two-col,
.col-2,
.grid-cols-2 {
  display: block !important;
  grid-template-columns: 1fr !important;
}

/* Center the main content */
.App,
.app-container,
body > #root {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

.main-content,
main {
  flex: 1 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* Fix any absolute positioned elements */
.calculator-container * {
  position: relative !important;
}

/* Ensure full width on mobile */
@media (max-width: 768px) {
  .calculator-form,
  .calculator-results,
  .calculator-content {
    padding: 1rem !important;
    width: 100% !important;
  }
}

/*# sourceMappingURL=main.0bd08b50.css.map*/