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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}
body .btn,
body .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    color: #fff !important;
}


/* ========== NAVBAR ========== */
.navbar {
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}


.notification-btn,
.profile-btn {
    position: relative;
    text-decoration: none;
}

.notification-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
}

.profile-btn img {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.header-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    margin-right: 8px;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.profile-btn .username {
    font-size: 0.8rem;
}

/* Make navbar slightly slimmer and neat */
.custom-header {
    padding: 0.55rem 1.5rem;
}
/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: 280px;
    margin-top: 76px;
    padding: 2rem;
    min-height: calc(100vh - 76px);
    transition: margin-left 0.3s ease;
}

.public-content {
    margin-top: 0;
    width: 100%;
}

/* ========== CARDS ========== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-header {
    border: none;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ========== BUTTONS ========== */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

/* ========== FEATURE CARDS ========== */
.features-section {
    padding: 5rem 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ========== DASHBOARD WIDGETS ========== */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.widget {
    padding: 1.5rem;
    border-radius: 12px;
}

.progress-widget .progress {
    height: 25px;
    border-radius: 12px;
}

.progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========== MODULE CONTENT ========== */
.module-content {
    max-width: 900px;
    margin: 0 auto;
}

.module-content h2 {
    margin-bottom: 1.5rem;
    color: #667eea;
}

.module-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ========== QUIZ SECTION ========== */
.quiz-container {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 12px;
}

.quiz-options {
    list-style: none;
    padding: 0;
}

.quiz-options li {
    margin-bottom: 1rem;
}

.quiz-option {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: #667eea;
}

.quiz-option.correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.quiz-option.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}


/* ar_scenario page */
.ar-list-pages-links a {
    text-decoration: none;
}

.ar-list-pages-links a:hover {
    text-decoration: none;
    /* hover underline bhi remove */
}


.custom-header,
.navbar {
    background-color: #ffffff !important;
    /* light default */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-image: none !important;
}
/* =========================================
   GLOBAL LINK COLOR FIX (THEME SAFE)
========================================= */

/* Default links */
a,
a:visited {
    color: inherit !important;
    /* Parent ka color follow kare */
    text-decoration: none;
}

/* Hover / focus */
a:hover,
a:focus {
    color: inherit !important;
    text-decoration: none;
}

/* Active */
a:active {
    color: inherit !important;
}


/* =========================================
AR SCENARIO PAGE – LINK HOVER / ACTIVE
========================================= */

.ar-list-pages-links li {
    margin-bottom: 2px;
}

.ar-list-pages-links a {
    display: block;
    padding: 4px 14px;
    border-radius: 8px;
    transition: background-color 0.25s ease,
        transform 0.2s ease;
}

/* Hover */
.ar-list-pages-links a:hover {
    background-color: rgba(102, 126, 234, 0.12);
    transform: translateX(4px);
}

/* Active (current page) */
.ar-list-pages-links a.active {
    background-color: rgba(98, 122, 231, 0.18);
    font-weight: 600;
}


/* =========================================
   COMPACT GLASS PILL BREADCRUMB
========================================= */

/* 1. The Container - Small, Round, Glassy */
.compact-glass-breadcrumb {
    background: rgba(255, 255, 255, 0.9); /* High opacity white */
    backdrop-filter: blur(8px); /* Frosted effect */
    -webkit-backdrop-filter: blur(8px);
    
    padding: 0.5rem 1.2rem; /* Reduced padding for compact look */
    border-radius: 20px; /* Full Rounded Corners (Pill shape) */
    
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1); /* Soft purple shadow */
    border: 1px solid rgba(255, 255, 255, 0.8);
    
    display: inline-flex; /* Fits content only, not full width */
    align-items: center;
    
    /* Animation */
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.95);
}

/* 2. Remove Bootstrap defaults */
.compact-glass-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    align-items: center;
    font-size: 0.85rem; /* Smaller, sharper font size */
}

/* 3. The Links (Home, App Name) */
.glass-crumb-link {
    color: #718096; /* Slate Grey */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 4px 8px;
        /* Thoda space click karne ke liye */
    border-radius: 20px;
}

/* Link Hover */
.glass-crumb-link:hover {
    color: #667eea !important;
    /* Theme Purple Color */
    background-color: rgba(102, 126, 234, 0.1);
    /* Light Purple Background Tint */
    transform: translateY(-2px);
    /* Thoda sa upar uthega */
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.2);
    /* Subtle Glow */
}
.glass-crumb-link:hover i {
    color: #764ba2;
    /* Icon thoda dark purple hoga */
}
/* 4. The Separator (Clean Slash) */
.compact-glass-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #cbd5e0;
    padding: 0 0.6rem; /* Tighter spacing */
    font-size: 0.8rem;
}

/* 5. The Active Page - GRADIENT TEXT */
.compact-glass-breadcrumb .breadcrumb-item.active {
    display: flex;
    align-items: center;
}

.glass-active-text {
    font-weight: 700;
    font-size: 0.85rem; /* Matches link size */
    
    /* Gradient Text */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 6. Entrance Animation (Pop effect) */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .compact-glass-breadcrumb {
        padding: 0.4rem 1rem;
        border-radius: 40px;
    }
    .compact-glass-breadcrumb .breadcrumb {
        font-size: 0.8rem;
    }
}



/* =========================================
   CUSTOM OFFCANVAS STYLING (MATCHING THEME)
========================================= */

/* 1. Header Gradient matches your .btn-primary */
.custom-offcanvas .offcanvas-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.2rem 1.5rem;
}

/* 2. Width Adjustment */
.custom-offcanvas {
    width: 320px;
    /* Thoda wide taaki content fit aaye */
    border-right: none;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
}

/* 3. List Item Styling (Similar to your Sidebar) */
.custom-offcanvas .list-group-item {
    font-size: 0.95rem;
    color: #2c3e50;
    /* Dark text */
    transition: all 0.2s ease;
    background: transparent;
}

/* Hover Effect - Light Blue Background like your design */
.custom-offcanvas .list-group-item:hover {
    background-color: rgba(102, 126, 234, 0.12);
    /* Light Purple tint */
    color: #667eea;
    /* Purple Text */
    padding-left: 1.5rem !important;
    /* Slight slide effect */
}

/* Icons styling inside list */
.custom-offcanvas .list-group-item i {
    width: 20px;
    text-align: center;
    transition: color 0.2s;
}

.custom-offcanvas .list-group-item:hover i {
    color: #764ba2 !important;
    /* Darker purple on hover */
    opacity: 1 !important;
}

/* 4. Search Input Styling */
.custom-offcanvas #menuSearch {
    border: 1px solid #e1e4e8;
    font-size: 0.9rem;
    box-shadow: none;
}

.custom-offcanvas #menuSearch:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* 5. Scrollbar Styling (Clean Look) */
.custom-offcanvas .offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.custom-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

/* ========== moreapp pages CONTENT STYLES (Global) ========== */

.claim-card {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: none;
    margin-bottom: 2rem;
}

.claim-title {
    font-weight: 700;
    color: #764ba2;
    /* Your theme purple */
}

.claim-meta {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    gap: 15px;
}

.claim-content {
    font-size: 15.5px;
    line-height: 1.7;
    color: inherit;
}

.claim-list {
    padding-left: 1.5rem;
}

.claim-content p,
.claim-content ul {
    margin-bottom: 1rem;
}

.claim-content ul li {
    margin-bottom: 0.8rem;
}

.section-subtitle {
    font-weight: 600;
    color: #764ba2;
    margin-top: 20px;
}

/* ====================LAYOUT FIX & UNIFIED NAVIGATION BUTTONS =====================*/
/* 1. Central Layout Wrapper (Alignment Fix) */
.layout-container {
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}
.main-content {
    padding-bottom: 7rem !important;
}

/* 3. Navigation Footer Wrapper */
.navigation-footer-wrapper {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

/* 4. SHARED BUTTON STYLE (Next & Prev - Exact Same Look) */
.nav-floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #555555;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;

    /* Subtle Default Border & Shadow */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);

    /* Smooth Transition */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.2, 2);
    position: relative;
    z-index: 1;
}
.nav-floating-btn:hover {
    background: #ffffff;
    color: #667eea;
    border-color: #667eea;
    transform: translateY(-4px);
    /* Lift Up Effect */
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}
/* 6. ICON STYLING & ANIMATION */
.nav-floating-btn i {
    color: #8996a8;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.nav-floating-btn:hover i {
    color: #667eea;
}

/* Arrow Slide Animations */
.icon-animate {
    transition: transform 0.3s ease;
}
/* Prev Button Hover - Arrow Left Move */
.prev-btn:hover .icon-animate {
    transform: translateX(-10px);
}
/* Next Button Hover - Arrow Right Move */
.next-btn:hover .icon-animate {
    transform: translateX(10px);
}

:root {
    --sidebar-width: 260px;
    --header-height: 70px;
    --primary-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hover-bg: rgba(102, 126, 234, 0.08);
    --text-main: #4a5568;
    /* --text-muted: #a0aec0; */
    --glow-color: rgba(102, 126, 234, 0.6);
}

/* =========================================
   SIDEBAR CONTAINER (Hidden Scroll & Glass)
   ========================================= */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    z-index: 1030;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 15px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Hide Scrollbar */
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.sidebar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* =========================================
   COMPACT MENU LIST
   ========================================= */
.sidebar-menu {
    list-style: none;
    padding: 0 10px;
    /* Small outer padding */
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 3px;
    /* Very small gap between items */
    position: relative;
}

/* --- LINK STYLING --- */
.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    /* Compact padding */
    font-size: 0.88rem;
    /* Slightly smaller, professional font */
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    /* Smooth transition */
    position: relative;
    overflow: hidden;
}

/* --- ICON STYLING (With Glow Support) --- */
.sidebar-menu a i:not(.fa-chevron-down) {
    width: 22px;
    font-size: 1rem;
    color: var(--text-muted);
    margin-right: 10px;
    text-align: center;
    transition: all 0.25s ease;
}

/* Dropdown Arrow */
.sidebar-menu .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

/* --- HOVER EFFECTS (Glow & Slide) --- */
.sidebar-menu a:hover {
    background-color: var(--hover-bg);
    color: #5a67d8;
    transform: translateX(3px);
    /* Small slide right */
}

.sidebar-menu a:hover i:not(.fa-chevron-down) {
    color: #5a67d8;
    text-shadow: 0 0 8px var(--glow-color);
    /* Icon Glow Effect */
    transform: scale(1.1);
    /* Slight zoom */
}

/* --- ACTIVE STATE (Modern Gradient Pill) --- */
.sidebar-menu a.active {
    background: var(--primary-grad);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.sidebar-menu a.active i {
    color: #fff !important;
    text-shadow: none;
    /* No glow needed on active (it's white) */
}

/* Active Dropdown Parent (Light highlight) */
.sidebar-menu a.active-parent {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
}

.sidebar-menu a.active-parent i {
    color: #5a67d8;
}

/* Rotate Chevron */
.sidebar-menu a[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* =========================================
   SUBMENU (Tighter & Clean)
   ========================================= */
.sidebar-menu .submenu {
    list-style: none;
    padding: 0;
    margin-top: 2px;
}

.sidebar-menu .submenu a {
    padding: 7px 15px 7px 46px;
    /* Indented */
    font-size: 0.82rem;
    /* Smaller sub-text */
    color: #718096;
    background: transparent;
    border-radius: 6px;
}

.sidebar-menu .submenu a:hover {
    color: #5a67d8;
    background: rgba(90, 103, 216, 0.05);
    transform: none;
    /* Don't move sub-items */
}

.sidebar-menu .submenu a:hover i {
    text-shadow: none;
    transform: none;
}

.sidebar-menu .submenu a.active {
    color: #5a67d8 !important;
    font-weight: 700;
    background: rgba(90, 103, 216, 0.12);
    box-shadow: none;
}

/* Dot indicator for active submenu items */
.sidebar-menu .submenu a.active::before {
    content: '';
    position: absolute;
    left: 28px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5a67d8;
}

/* =========================================
   LOGOUT SECTION (Bottom Sticky)
   ========================================= */
.sidebar-logout {
    margin-top: auto;
    /* Pushes to bottom */
    padding: 10px 10px 0 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.sidebar-logout a {
    color: #e53e3e !important;
    /* Red */
    font-weight: 600;
    padding: 10px 14px;
}

.sidebar-logout a:hover {
    background-color: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.15);
}

/* =========================================
   MOBILE RESPONSIVE (Drawer)
   ========================================= */
@media (max-width: 991.98px) {
    .sidebar {
        width: 270px;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 2050;
        padding-top: 0;
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    }

    /* Mobile Header inside Sidebar */
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        margin-bottom: 5px;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
    }
}