/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --primary: #f8fafc;
  --secondary: #ffffff;
  --accent: #2563eb;
  --accent-gradient: linear-gradient(90deg, #2563eb, #3b82f6);
  --success: #10b981;
  --success-gradient: linear-gradient(90deg, #10b981, #16a34a);
  --text: #1e293b;
  --text-secondary: #64748b;
  --dropdown-bg: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.8);
  --search-bg: rgba(255, 255, 255, 0.98);
  --border: #9dc6fc;
  --shadow: rgba(0, 0, 0, 0.05);
}

body {
  background-color: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}



/* ALERTS */

/* ALERT POP UPS */


.success-alert {
  background-color: #4CAF50;
  color: white;
}

.alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000009b;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.alert-content {
  width: 350px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.alert-icon {
  margin-bottom: 15px;
}

.alert-icon i {
  font-size: 50px;

}

.alert-message h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.alert-message p {
  margin: 0;
  font-size: 1rem;
}

.alert-button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: white;
  color: #4CAF50;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.alert-button:hover {
  opacity: 0.9;
}


.error-alert {
  background-color: #F44336;
  color: white;
}

.error-alert .alert-button {
  color: #F44336;
}



.confirm-modal {
  background-color: white;
  color: #333;
}

.confirm-modal .alert-icon svg {
  stroke: #4CAF50;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  padding: 10px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  margin-bottom: 15px;
}

header button {
  background: var(--accent);
  padding: 10px 30px;
  color: var(--secondary);
  font-size: 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.nav-container {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--accent);
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 0;
  box-shadow: 0 15px 40px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--border);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.dropdown-item {
  list-style: none;
}

.dropdown-link {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s;
}

.dropdown-link i {
  margin-right: 10px;
  font-size: 0.9rem;
  color: var(--accent);
}

.dropdown-link:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-container {
  position: relative;
}

.search-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
}

.search-btn:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.2);
}

.subscribe-btn {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  text-decoration: none;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding-top: 100px;
  min-height: 100vh;
}

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

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle,
.tagline {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.calculator-card,
.simulator-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px var(--shadow);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
}

.simulator-card {
  background: var(--secondary);
  padding: 30px;
  margin-bottom: 30px;
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text);
  text-align: center;
  font-weight: 700;
}

/* ===== FORM INPUTS ===== */
.calculator-grid,
.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.input-grid {
  gap: 25px;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s;
  appearance: none;
}

.input-wrapper select {
  cursor: pointer;
}

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

.input-wrapper .input-icon,
.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* ===== SLIDERS ===== */
.slider-container {
  margin-top: 10px;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: var(--primary);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: all 0.3s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-value {
  text-align: center;
  font-weight: 600;
  color: var(--accent);
  margin-top: 5px;
}

/* ===== BUTTONS ===== */
.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.calculate-btn,
.reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  gap: 0.5rem;
  flex: 1;
}

.calculate-btn {
  background: var(--accent-gradient);
  color: white;
  width: 100%;
}

.calculate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.reset-btn {
  background: var(--primary);
  color: var(--text);
  border: 1px solid var(--border);
}

.reset-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: #f1f5f9;
}

/* ===== RESULTS ===== */
.results-container {
  background: var(--secondary);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 30px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.results-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.results-header i {
  font-size: 2rem;
  color: var(--accent);
  margin-right: 1rem;
}

.results-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.result-item {
  background: var(--primary);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--border);
}

.result-item.positive,
.result-item.highlight {
  border: 2px solid var(--success);
}

.result-item.negative {
  border: 2px solid var(--accent);
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.result-value.positive {
  color: var(--success);
}

/* ===== CHARTS ===== */
.chart-container {
  margin-top: 2rem;
  height: 300px;
  position: relative;
}

/* ===== STRATEGY SECTION ===== */
.strategy-section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 30px var(--shadow);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.strategy-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.strategy-header i {
  font-size: 2rem;
  color: var(--success);
  margin-right: 1rem;
}

.strategy-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--success-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.strategy-btn {
  background: var(--secondary);
  border: 2px solid var(--border);
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-weight: 600;
}

.strategy-btn.active {
  background: var(--success-gradient);
  color: white;
  border-color: var(--success);
}

.strategy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}

.strategy-info {
  background: var(--primary);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--success);
}

.strategy-info h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text);
}

.strategy-info p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.strategy-info ul {
  padding-left: 20px;
  color: var(--text-secondary);
}

.strategy-info li {
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.footer,
footer {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  text-align: center;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #e0f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo i {
  margin-right: 0.5rem;
  color: #e0f2fe;
  font-size: 2.5rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
}

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

.footer-link {
  margin-bottom: 0.8rem;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-link i {
  font-size: 0.8rem;
  color: #93c5fd;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transition: all 0.3s;
}

.social-link:hover {
  background: white;
  color: #2563eb;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-bottom-link:hover {
  color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .input-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

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

  .strategy-buttons {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
  }

  .card-title,
  .results-title,
  .strategy-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .calculator-container,
  .container {
    padding: 1rem;
  }

  .calculator-card,
  .simulator-card {
    padding: 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}