/* === Fixed Top Navbar for Large Screens === */
.largenav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

/* * Add space below fixed top nav ONLY on large screens */
@media (min-width: 992px) {
    body {
        padding-top: 90px;
        background: white;
    }
}

/* === Navbar Brand === */
.navbar-brand img {
    max-height: 40px;
}

/* === Search Bar Styling === */
.navbar form input[type="search"] {
    border-radius: 30px;
    padding-left: 15px;
    height: 40px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.navbar form input[type="search"]:focus {
    border-color: #04ee2be1;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* === Profile & Icons === */
.navbar .nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .nav-link img {
    border: 2px solid #f1f1f1;
}

.navbar .nav-link {
    color: #333;
    padding: 8px;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: #0d6efd;
}

.navbar .badge {
    font-size: 0.65rem;
    padding: 4px 6px;
}

.navbar .fa-lg {
    font-size: 1.25rem;
}
 
/* === Responsive Adjustments === */
/* General */
.dashboard-container {
  padding-top: 0;
  padding-bottom: 1rem;
  background-color: white;
}

/* Banner */
.banner-section {
  background-color: #f2f3f3;
  padding: 3rem 1rem;
  border-radius: 1rem;
  text-align: center;
}

/* Services Grid */
.services-grid .card {
  transition: transform 0.3s ease;
}
.services-grid .card:hover {
  transform: scale(1.03);
}

.services-grid .cardone{
    background-color: #ebffd7;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.services-grid .cardtwo{
    background-color: #efddc3;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

/* Promo Section */
.referral-promo {
  background-color: #e8f5e9;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Profile Box */
.profile-box {
  background-color: #6cc51d;
  color: white;
  border-radius: 0.75rem;
  padding: 2rem;
}

.notificationcard {
  background-color: #6cc51d;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Activity Section */
.activity-section {
  background-color: #052d07;
  color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* Responsive */
@media (max-width: 767.98px) {
  .referral-promo {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .referral-promo button {
    width: 100%;
  }

  .profile-box .row > div {
    margin-bottom: 1.5rem;
  }

  .services-grid .col-6 {
    width: 100%;
  }
}

/* Custom CSS for responsive ads section */
    @media (max-width: 576px) {
        #bannerCarousel .carousel-caption {
            bottom: 10% !important;
            max-width: 90% !important;
        }
        #bannerCarousel .carousel-caption h5 {
            font-size: 1rem;
            margin-bottom: 0.25rem !important;
        }
        #bannerCarousel .carousel-caption p {
            display: none !important;
        }
        #bannerCarousel .carousel-caption a {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem !important;
        }
    }
    
    @media (min-width: 576px) and (max-width: 768px) {
        #bannerCarousel .carousel-caption h5 {
            font-size: 1.1rem;
        }
        #bannerCarousel .carousel-caption p {
            font-size: 0.85rem;
            margin-bottom: 0.5rem !important;
        }
    }
    
    .service-card {
        transition: all 0.3s ease;
        background-color: #f8f9fa;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
        background-color: #fff;
    }
    
    .service-icon {
        max-width: 50px;
        height: auto;
    }
    
    @media (min-width: 992px) {
        .service-icon {
            max-width: 60px;
        }
    }
    
    .hover-effect:hover {
        text-decoration: none;
        color: inherit;
    }
    /* skeleton loader */
    .skeleton {
    background-color: #e2e2e2;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.list-group.position-sticky {
   max-height: calc(100vh - 100px);
   overflow-y: auto;
}

#loading-skeleton {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
}

.placeholder-glow .placeholder {
    animation: placeholder-glow 1.5s infinite;
}

@keyframes placeholder-glow {
    0% { background-color: #eee; }
    50% { background-color: #ddd; }
    100% { background-color: #eee; }
}

