/* General Styles */
body {
  background-color: #ffffff;
  color: #333333;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Ad Banner */
.top-ad-banner {
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ff6b6b);
  background-size: 200% auto;
  color: white;
  padding: 0;
  text-align: center;
  font-weight: bold;
  animation: gradient 3s linear infinite, slideIn 0.5s ease-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

@keyframes gradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

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

.ad-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ad-image-container {
  width: 100%;
  height: auto;
  max-height: 200px;
  overflow: hidden;
}

.ad-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.ad-text-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 10px 15px;
  width: 100%;
}

.ad-icon {
  animation: pulse 1.5s infinite;
  font-size: 1.2rem;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.ad-text {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.ad-cta {
  animation: bounce 2s infinite;
  font-weight: bold;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* Floating Dark Mode Toggle */
.dark-mode-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

#theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #f8f9fa;
}

body.dark-mode .navbar {
  background-color: #1a1a1a !important;
   color: #f8f9fa;
}
body.dark-mode .nav-link {
  color: #f8f9fa;
}
body.dark-mode .nav-link:hover {
  color: #14ad4f;
}

body.dark-mode .card {
  background-color: #1e1e1e;
  color: #f8f9fa;
  border-color: #333;
}

body.dark-mode .scrollable-section {
  background-color: #1e1e1e;
  border-color: #333;
  color: #f8f9fa;
}
:root .alert-slider {
  background-color: #cdffe4;
  color: #012715;
  border-left-color: #ffee07;
}

body.dark-mode .list-group-item {
  background-color: #1e1e1e;
  color: #f8f9fa;
  border-color: #333;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #2d2d2d;
  color: #f8f9fa;
  border-color: #444;
}

/* Circular Logo Styles */
.logo-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #118f3b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  background-color: white;
}
.circular-logo {
  width: 80%;
  height: auto;
  object-fit: contain;
}

/* Compact Header Styles */
.compact-header .navbar {
  min-height: 60px;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}
.compact-header .nav-link {
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  margin: 0 5px;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.compact-header .nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.445);
}
.compact-header .btn-outline-success {
  color: #28a745;
  border-color: #28a745;
  font-size: 1.1rem; 
  border-radius: 500px; 

}
.compact-header .btn-outline-success:hover {
  background-color: #28a745;
  color: white;
}

/* Header Elements */
.header-stats {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #495057;
  margin: 0 15px;
}
.search-container {
  width: 200px;
  margin-right: 15px;
}
.search-container input {
  font-size: 0.85rem;
}
.form-select {
  width: 120px;
  font-size: 0.85rem;
}

/* Main Content Styles */
.body-content {
  padding: 20px;
  margin-top: 20px;
}
.scrollable-section {
  height: 300px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}
.card {
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card-img-top {
  height: 10px;
  object-fit: cover;
}

/* Footer Styles */
footer {
  background-color: #f8f9fa;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid #dee2e6;
  transition: all 0.3s ease;
}
.contact-info {
  margin: 15px 0;
}
.social-media a {
  color: #495057;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s ease;
}
.social-media a:hover {
  color: #11a349;
}

/* Image Slider */
.image-slider {
  margin: 30px 10;
  width: 800%;

}
.carousel-item img {
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
}

/* Alert Box */
.alert-slider {
  background-color: #fff3cd;
  color: #19a007;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 15px auto;
  max-width: 90%;
  width: 500%;
  border-left: 5px solid #ffc107;
}

/* Dark mode footer adjustments */
body.dark-mode footer {
  background-color: #1a1a1a;
  border-top-color: #333;
}

body.dark-mode .social-media a {
  color: #aaa;
}

body.dark-mode .social-media a:hover {
  color: #14ad4f;
}

body.dark-mode .alert-slider {
  background-color: #332c00;
  color: #ffd700;
  border-left-color: #ffd700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ad-text-content {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }
  
  .ad-icon, .ad-cta {
    display: none;
  }
  
  .ad-text {
    font-size: 0.9rem;
  }
}