/* ===== GLOBAL STYLES ===== */

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    
}

/* Content Container - Constrains width for static pages */
.content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* For full-width elements that need to break out */
.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Regular Pages Layout */
.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('../images/bg1.jpeg');
    background-size: cover;
    background-position: center;
}

.main-content {
    flex: 1 0 auto;
}

/* =====DASHBOARD LAYOUT===== */
.dashboard-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('../images/bg1.jpeg');
    background-size: cover;
    background-position: center;
}

.dashboard-body > nav {
    flex-shrink: 0;
}

.dashboard-layout {
    display: flex;
    flex: 1 0 auto;
    min-height: 0;
    position: relative;
}

.dashboard-main {
    flex: 1;
    padding: 1rem;
    min-width: 0;
    overflow-x: hidden;
    width: 100%;
}

@media (min-width: 992px) {
    .dashboard-main {
        padding: 1.5rem 2rem;
    }
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.premium-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.premium-navbar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.premium-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: #111827;
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #198754;
    color: white;
    border-radius: 12px;
    font-size: 18px;
}

.premium-nav-link {
    color: #4b5563;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.premium-nav-link:hover {
    background: #f3f4f6;
    color: #198754;
}

.active-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

/* Mobile Navbar Toggle */
.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Mobile Navbar Menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .premium-nav-link {
        display: inline-block;
        width: 100%;
        padding: 12px 16px;
    }
    
    .navbar-nav {
        gap: 5px;
    }
    
    .user-pill {
        justify-content: center;
    }
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
.dashboard-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    padding: 1rem;
    flex-shrink: 0;
    overflow-y: auto;
    z-index: 1051;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.sidebar-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
    margin-bottom: 10px;
    margin-top: 1.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 14px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: #f3f4f6;
    transform: translateX(3px);
    color: #198754;
}

.active-sidebar {
    background: #198754 !important;
    color: white !important;
    box-shadow: 0 6px 18px rgba(25,135,84,0.2);
}

.active-sidebar:hover {
    color: white !important;
    transform: none;
}

/* Mobile Sidebar */
@media (max-width: 991px) {
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        box-shadow: 0 0 25px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        z-index: 1050;
    }

    .dashboard-sidebar.show {
        left: 0;
    }

    .dashboard-main {
        width: 100%;
        padding: 1rem;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1040;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   NOTIFICATIONS & USER
   ============================================ */
.notification-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #4b5563;
}

.notification-btn:hover {
    background: #f3f4f6;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    border-radius: 999px;
    padding: 3px 6px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    padding: 6px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease;
}

.user-pill:hover {
    background: #f3f4f6;
}

.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Login Button */
.premium-login-btn {
    background: #198754;
    color: white;
    border-radius: 12px;
    padding: 8px 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.premium-login-btn:hover {
    background: #157347;
    color: white;
}

/* ============================================
   DROPDOWNS
   ============================================ */
.notification-dropdown,
.dropdown-menu {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   UTILITY STYLES
   ============================================ */
.form-control,
.form-select {
    max-width: 100%;
    width: 100%;
}

.card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.card-body,
.card {
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    transition: 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

.doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.progress-bar-inner {
    transition: width 0.4s ease;
}

/* Star Rating */
.star-rating {
    font-size: 2rem;
    cursor: pointer;
    color: #ddd;
}

.star-rating span {
    transition: color 0.2s;
}

.star-rating span.active {
    color: gold;
}

.stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star {
    font-size: 16px;
    color: #ddd;
}

.star.active {
    color: #f4b400;
}

/* Action Buttons & Buttons */
.btn {
    border-radius: 12px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #601987;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #374eb6 0%, #764ba2 100%);
    border-color: #157347;
}

.btn-outline-primary {
    border-color: linear-gradient(135deg, #374eb6 0%, #764ba2 100%);
    color: linear-gradient(135deg, #374eb6 0%, #764ba2 100%)
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #601987;
    color: white;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Badge */
.badge.subtle {
    background: #f1f3f5;
    color: #666;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Footer */
footer {
    flex-shrink: 0;
    width: 100%;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .content-container {
        padding: 0 16px;
    }
    
    .premium-nav-link {
        font-size: 14px;
    }
    
    .user-pill span {
        display: none;
    }
}

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    padding: 60px 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Feature Section */
.features-section {
    background: #f8f9fa68;
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 20px;
}

/* Stats Section */
.stats-section {
    background: #f8f9fa68;
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-card h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Compact Testimonials Carousel */
.testimonials-section {
    background: #f8f9fa68;
    border-radius: 20px;
}

.swiper {
    padding: 20px 0 50px 0;
    overflow: hidden;
}

.testimonial-card-compact {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin: 10px;
    position: relative;
}

.testimonial-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.testimonial-avatar-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-rating-sm i {
    font-size: 0.75rem;
}

.quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(13, 110, 253, 0.1);
}

.testimonial-text-sm {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-right: 20px;
}

.testimonial-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
    margin-top: 5px;
}

/* Swiper Custom Styles */
.swiper-button-prev,
.swiper-button-next {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
    color: #0d6efd;
}

.swiper-pagination-bullet {
    background: #0d6efd;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .testimonial-card-compact {
        padding: 15px;
    }
    
    .testimonial-text-sm {
        font-size: 0.75rem;
    }
    
    .quote-icon {
        font-size: 1.5rem;
        top: 10px;
        right: 15px;
    }
}


@media (max-width: 768px) {
    .stat-card h2 {
        font-size: 1.5rem;
    }
}


.quick-action-card {
    transition: all .25s ease;
    cursor: pointer;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12) !important;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #198754;
}