:root {
  --primary: #ffffff;
  --secondary: #000000;
  --accent: #3b82f6;
}

body {
  background-color: var(--primary);
  color: var(--secondary);
}
.navbar {
  background-color: #ffffff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.7rem 0;
}

.nav-container {
  opacity: 0;
  transform: translateY(-10px);
  animation: navFadeIn 0.6s ease forwards;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000 !important;
  letter-spacing: -0.5px;
}

.nav-link {
  color: #000000 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link-hover::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-hover:hover::after {
  width: 100%;
}

.navbar-nav {
  opacity: 0;
  animation: staggeredFadeIn 0.6s ease forwards;
  animation-delay: 0.3s;
}

.nav-item {
  opacity: 0;
  transform: translateY(-10px);
  animation: navItemFadeIn 0.5s ease forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes staggeredFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes navItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar i {
  stroke-width: 2px;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: translateY(-2px);
}
.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

/* History page styles */
.history-timeline {
    position: relative;
    padding: 20px 0;
}

.diagnosis-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
}

.diagnosis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.diagnosis-card .card-header {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 15px 15px 0 0;
}

.text-primary {
    color: #3b82f6 !important;
}

.bg-primary {
    background-color: #3b82f6 !important;
}

.condition-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.condition-card:hover {
    background-color: rgba(59, 130, 246, 0.05) !important;
}

.progress {
    height: 20px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
}

.progress-bar {
    border-radius: 20px;
}

.list-group-item {
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.badge {
    font-weight: 500;
    padding: 0.5em 1em;
}

h2, h5, h6 {
    color: #1f2937;
}

.text-muted {
    color: #6b7280 !important;
}

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Button animations */
.btn {
  position: relative;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover:before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background-color: var(--accent);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-outline-secondary {
  border: 2px solid var(--secondary);
  background: transparent;
  transition: all 0.4s ease;
}

.btn-outline-secondary:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.02);
}

.btn-outline-danger {
  border: 2px solid #dc3545;
  background: transparent;
  color: #dc3545;
  transition: all 0.4s ease;
}

.btn-outline-danger:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px) rotate(-3deg);
}

.add-field {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.8rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Premium page styles */
.premium-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.premium-hero {

/* Index page animations */
.hero-section .particle {
  animation-duration: var(--duration);
  animation-delay: var(--delay);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(var(--translateX), var(--translateY));
  }
  100% {
    transform: translate(0, 0);
  }
}

.premium-cta {
  background: linear-gradient(135deg, #235f91 0%, #5BA4FC 100%);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.premium-cta:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.03);
}

  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  padding: 4rem 2rem;
  border-radius: 20px;
  color: white;
  margin-bottom: 3rem;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
  animation-delay: calc(var(--order) * 0.2s);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.premium-btn {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  border: none;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.premium-btn:hover {
  transform: scale(1.05);
}

/* Usage limit modal */
.usage-limit-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--primary);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  animation: modalPop 0.5s ease forwards;
  max-width: 500px;
  width: 90%;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes modalPop {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card grid animations */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid .card {
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Modern form styling */
.input-group {
  margin-bottom: 1.5rem;
}

.input-group-text  {
  background-color: var(--secondary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.card-title  {
  color: var(--secondary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.form-label {
  color: var(--secondary);
}

.premium-upgrade-prompt {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.premium-upgrade-prompt h3,
.premium-upgrade-prompt p,
.premium-upgrade-prompt a {
  position: relative;
  z-index: 1;
}

/* Alert styling */
.alert {
  border: none;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* History page styles */
.history-timeline {
    position: relative;
    padding: 20px 0;
}

.diagnosis-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.diagnosis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

.diagnosis-card .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.condition-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.condition-card:hover {
    background-color: rgba(0,0,0,0.02) !important;
}

#downloadHistory {
    transition: all 0.3s ease;
}

#downloadHistory:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.list-group-item {
    transition: background-color 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(0,0,0,0.02) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #5BA4FC 0%, #235f91 100%);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.copyright-text {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}