/* ===== Base Styles ===== */
:root {
  --primary-color: #8A2BE2; /* Violet */
  --secondary-color: #6A5ACD; /* Indigo */
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --shadow-sm: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ===== Main Layout ===== */
.main-content {
  margin-left: 0;
  margin-top: 70px;
  padding: 1.5rem;
  min-height: 100vh;
  transition: all 0.3s ease;
}

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

@media (min-width: 992px) {
  .main-content {
    margin-left: 250px;
    padding: 2rem 3rem;
  }
}

/* ===== Typography ===== */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Button Styles ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(138, 43, 226, 0.1);
  transform: translateY(-3px);
}

/* ===== Form Elements ===== */
.input-field {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.input-field:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.03);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
    margin: 5rem 0;
  }
  .hero-content {
    text-align: left;
  }
  .hero-actions {
    justify-content: flex-start;
  }
}

/* ===== Features Section ===== */
.features {
  margin: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
  border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Stats Section ===== */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--bg-light);
  padding: 3rem 2rem;
  border-radius: 15px;
  margin: 4rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-light);
  font-size: 1.1rem;
}

@media (min-width: 600px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Testimonials Section ===== */
.testimonials {
  margin: 6rem 0;
}

.testimonial-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.testimonial {
  min-width: 85%;
  scroll-snap-align: start;
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary-color);
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.testimonial-author p {
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .testimonial {
    min-width: 350px;
  }
}

/* ===== CTA Section ===== */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: 15px;
  margin: 4rem 0;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  background: var(--white);
  color: var(--primary-color);
}

.cta .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ===== Newsletter Section ===== */
.newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-light);
  padding: 3rem 2rem;
  border-radius: 15px;
  margin: 4rem 0;
  gap: 2rem;
}

.newsletter-content {
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  gap: 1rem;
}

.newsletter-form .input-field {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .newsletter {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .newsletter-content {
    text-align: left;
    flex: 1;
  }
  .newsletter-form {
    flex: 1;
    flex-direction: row;
  }
  .newsletter-form .input-field {
    border-radius: 50px 0 0 50px !important;
  }
  .newsletter-form .btn {
    border-radius: 0 50px 50px 0 !important;
    width: auto;
  }
}


/* Tracking Sidebar Input Styling */
#tracking-sidebar input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#tracking-sidebar input[type="text"]:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

#tracking-sidebar input[type="text"]::placeholder {
  color: #999;
}


/* Account Sidebar Specific Styles */
.account-profile {
  text-align: center;
  margin-bottom: 30px;
}

.account-profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #f0f0f0;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.account-profile-pic .default-avatar {
  font-size: 60px;
  color: #999;
}

.account-name {
  margin: 0;
  color: #4caf50;
  font-size: 18px;
}

.account-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}



.account-btn {
  padding: 12px 20px;
  background: #4caf50;
  border: none;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9em;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.account-btn:hover {
  background: #3d8b40;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.logout-btn {
  display: none;
  background: #ff4a4a;
}

.logout-btn:hover {
  background: #ef3a3a;
}

.login-form, .signup-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 10px;
}

.login-form.active, .signup-form.active {
  max-height: 500px;
  padding: 10px;
}

.form-input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

.form-submit-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #4a6bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.form-submit-btn:hover {
  background: #3a5bef;
}

.hidden {
  display: none;
}

.auth-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: bold;
}

.auth-message.success {
    background-color: #d4edda;
    color: #155724; /* Dark green for success */
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: #721c24; /* Dark red for error */
    border: 1px solid #f5c6cb;
}













