/* Homepage Styles */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.1), rgba(58, 200, 124, 0.1));
  border-radius: 20px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #7c8db5;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.featured-calculators {
  margin-bottom: 3rem;
}

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

.calculator-card {
  background: rgba(26, 37, 47, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(77, 163, 255, 0.2);
}

.calculator-card--featured {
  border: 2px solid rgba(77, 163, 255, 0.3);
}

.calculator-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.calculator-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #e9f0ff;
}

.calculator-card p {
  color: #7c8db5;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.calculator-meta {
  margin-bottom: 1.5rem;
}

.calculator-category {
  background: rgba(77, 163, 255, 0.2);
  color: #4da3ff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.calculator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag {
  background: rgba(31, 42, 77, 0.5);
  color: #7c8db5;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.tag--small {
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

.calculator-link {
  display: inline-block;
  background: linear-gradient(135deg, #4da3ff, #3ac87c);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.calculator-link:hover {
  transform: translateY(-2px);
}

.all-calculators {
  margin-bottom: 3rem;
}

.calculators-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.calculator-item {
  background: rgba(26, 37, 47, 0.6);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.3s ease;
}

.calculator-item:hover {
  background: rgba(26, 37, 47, 0.8);
}

.calculator-icon-small {
  font-size: 2rem;
  min-width: 3rem;
}

.calculator-content {
  flex: 1;
}

.calculator-content h4 {
  margin-bottom: 0.5rem;
}

.calculator-content h4 a {
  color: #e9f0ff;
  text-decoration: none;
}

.calculator-content h4 a:hover {
  color: #4da3ff;
}

.calculator-content p {
  color: #7c8db5;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.calculator-button {
  background: rgba(77, 163, 255, 0.2);
  color: #4da3ff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 80px;
  text-align: center;
  transition: background 0.3s ease;
}

.calculator-button:hover {
  background: rgba(77, 163, 255, 0.3);
}

.info-section {
  margin-bottom: 3rem;
}

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

.info-card {
  background: rgba(26, 37, 47, 0.6);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.info-card h3 {
  color: #4da3ff;
  margin-bottom: 1rem;
}

.info-card p {
  color: #7c8db5;
  line-height: 1.6;
}

.disclaimer-section {
  margin-bottom: 2rem;
}

.disclaimer-card {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.disclaimer-card h3 {
  color: #ff6b6b;
  margin-bottom: 1rem;
}

.disclaimer-card p {
  color: #7c8db5;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #7c8db5;
}

.breadcrumb a {
  color: #4da3ff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Navigation Dropdown */
.nav-item--dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7em;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(15, 20, 25, 0.95);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-item--dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item--dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-subitem {
  margin: 0;
}

.nav-sublink {
  display: block;
  padding: 0.75rem 1rem;
  color: #e9f0ff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.nav-sublink:hover,
.nav-sublink--active {
  background: rgba(77, 163, 255, 0.2);
  color: #4da3ff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  background: linear-gradient(135deg, #0f1419 0%, #1a252f 100%);
  color: #e9f0ff;
  min-height: 100vh;
  line-height: 1.6;
}

/* Site Header */
.site-header {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 42, 77, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.logo h1 {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #4da3ff, #3ac87c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #e9f0ff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Site Navigation */
.site-nav {
  background: rgba(26, 37, 47, 0.8);
  border-bottom: 1px solid rgba(31, 42, 77, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  display: block;
  padding: 1rem 0;
  color: #e9f0ff;
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link--active {
  color: #4da3ff;
  border-bottom-color: #4da3ff;
}

/* Main Content */
main {
  flex: 1;
  padding: 2rem 0;
}

/* Calculator Styles */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: rgba(26, 37, 47, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4da3ff, #3ac87c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #e9f0ff;
}

.badge {
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 8px;
}

.muted {
  color: #7c8db5;
  font-size: 0.9rem;
  line-height: 1.5;
}

.danger {
  color: #ff6b6b;
  font-weight: 600;
}

/* Form Styles */
.row3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #e9f0ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

input, select {
  padding: 12px;
  border: 1px solid rgba(31, 42, 77, 0.5);
  border-radius: 8px;
  background: rgba(15, 20, 25, 0.5);
  color: #e9f0ff;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #4da3ff;
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.1);
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .icon {
  width: 16px;
  height: 16px;
  background: #4da3ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  cursor: help;
}

.tooltip .tip {
  visibility: hidden;
  width: 250px;
  background: rgba(15, 20, 25, 0.95);
  color: #e9f0ff;
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  right: 50%;
  margin-right: -125px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
  border: 1px solid rgba(31, 42, 77, 0.3);
}

.tooltip:hover .tip {
  visibility: visible;
  opacity: 1;
}

/* Details */
details {
  margin: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px;
  background: rgba(31, 42, 77, 0.3);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background 0.3s ease;
}

summary:hover {
  background: rgba(31, 42, 77, 0.5);
}

/* Buttons */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

button:not(.secondary) {
  background: linear-gradient(135deg, #4da3ff, #3ac87c);
  color: white;
}

button:not(.secondary):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(77, 163, 255, 0.3);
}

button.secondary {
  background: rgba(31, 42, 77, 0.5);
  color: #e9f0ff;
  border: 1px solid rgba(31, 42, 77, 0.3);
}

button.secondary:hover {
  background: rgba(31, 42, 77, 0.7);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* One-off Events */
.event-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(15, 20, 25, 0.3);
  border-radius: 8px;
}

.remove-event {
  min-width: auto;
  padding: 8px 16px;
  background: #ff6b6b;
  color: white;
}

.remove-event:hover {
  background: #ff5252;
}

/* Results Section */
#resultsContent {
  overflow-x: auto;
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.pill {
  background: rgba(31, 42, 77, 0.5);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(31, 42, 77, 0.3);
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.kpi-card {
  background: rgba(15, 20, 25, 0.5);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.kpi-title {
  font-size: 0.9rem;
  color: #7c8db5;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4da3ff;
  margin-bottom: 8px;
}

.kpi-desc {
  font-size: 0.8rem;
  color: #7c8db5;
}

/* Chart */
.chart-container {
  background: rgba(15, 20, 25, 0.5);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  height: 400px;
}

/* Tables */
.annual-table-section {
  margin: 24px 0;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 20, 25, 0.5);
}

.table th,
.table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(31, 42, 77, 0.3);
}

.table th {
  background: rgba(31, 42, 77, 0.5);
  font-weight: 600;
  color: #e9f0ff;
}

.table td {
  color: #7c8db5;
}

/* Mobile Table */
.mobile-table-toggle {
  text-align: center;
  margin: 15px 0;
}

.show-mobile-table {
  background: rgba(31, 42, 77, 0.5);
  color: #e9f0ff;
  border: 1px solid rgba(31, 42, 77, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-cards-view {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.year-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(31, 42, 77, 0.3);
  padding: 12px;
  border-radius: 8px;
}

.year-card {
  background: rgba(15, 20, 25, 0.5);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 12px;
  padding: 16px;
}

.year-card-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4da3ff;
  margin-bottom: 16px;
  text-align: center;
}

.year-card-content {
  display: grid;
  gap: 12px;
}

.year-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(31, 42, 77, 0.3);
}

.year-card-label {
  font-size: 0.9rem;
  color: #7c8db5;
}

.year-card-value {
  font-weight: 600;
  color: #e9f0ff;
}

/* Utility */
.sep {
  height: 1px;
  background: rgba(31, 42, 77, 0.3);
  margin: 24px 0;
}

.flex {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-table-view {
  background: rgba(31, 42, 77, 0.5);
  color: #e9f0ff;
  border: 1px solid rgba(31, 42, 77, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
}

/* Additional Styles for New Pages */
.about-content,
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section,
.contact-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  color: #4da3ff;
  margin-bottom: 1rem;
}

.about-section p {
  color: #7c8db5;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.value-card {
  background: rgba(26, 37, 47, 0.6);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.value-card h3 {
  color: #4da3ff;
  margin-bottom: 1rem;
}

.value-card p {
  color: #7c8db5;
  line-height: 1.6;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  background: rgba(26, 37, 47, 0.3);
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-right: 3px solid #4da3ff;
  color: #7c8db5;
}

.features-list li:before {
  content: "✓ ";
  color: #3ac87c;
  font-weight: bold;
  margin-left: 0.5rem;
}

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

.contact-card {
  background: rgba(26, 37, 47, 0.6);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
}

.contact-card h2,
.contact-card h3 {
  color: #4da3ff;
  margin-bottom: 1rem;
}

.contact-info {
  margin-top: 1rem;
}

.contact-item {
  margin-bottom: 1rem;
  color: #7c8db5;
}

.contact-item strong {
  color: #e9f0ff;
  margin-left: 0.5rem;
}

.contact-item a {
  color: #4da3ff;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(31, 42, 77, 0.3);
}

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

.faq-item h3 {
  color: #e9f0ff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #7c8db5;
  line-height: 1.6;
}

.improvement-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.improvement-list li {
  background: rgba(31, 42, 77, 0.3);
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: #7c8db5;
}

.improvement-list li:before {
  content: "💡 ";
  margin-left: 0.5rem;
}

/* Coming Soon Pages */
.coming-soon-card {
  background: rgba(26, 37, 47, 0.8);
  border: 1px solid rgba(31, 42, 77, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.coming-soon-card h2 {
  color: #4da3ff;
  margin-bottom: 1rem;
}

.coming-soon-card p {
  color: #7c8db5;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.related-calculators {
  margin-top: 3rem;
}

.related-calculators h3 {
  color: #e9f0ff;
  margin-bottom: 1rem;
}

/* Categories */
.calculators-categories {
  margin-top: 2rem;
}

.category-section {
  margin-bottom: 3rem;
}

.category-section h2 {
  color: #4da3ff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(77, 163, 255, 0.3);
}

/* Responsive adjustments for new content */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .calculators-grid {
    grid-template-columns: 1fr;
  }
  
  .calculator-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .calculator-icon-small {
    min-width: auto;
  }
  
  .values-grid,
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(26, 37, 47, 0.9);
    margin-top: 0.5rem;
    border-radius: 8px;
  }
  
  .nav-item--dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
  }
}
.site-footer {
  background: rgba(15, 20, 25, 0.95);
  border-top: 1px solid rgba(31, 42, 77, 0.3);
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

.footer-section h3,
.footer-section h4 {
  color: #4da3ff;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #7c8db5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4da3ff;
}

.disclaimer {
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(31, 42, 77, 0.3);
  color: #7c8db5;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container,
  .nav-container,
  .footer-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav {
    display: none;
  }

  .site-nav.active {
    display: block;
  }

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .row3 {
    grid-template-columns: 1fr;
  }

  .event-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 300px;
    padding: 12px;
  }

  .full-table {
    display: none !important;
  }

  .mobile-table-toggle {
    display: block !important;
  }

  .toggle-table-view {
    display: none !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}