/* ===================================================================
   FRAMEWORK.CSS
   Optimized for Mod Database - Main Stylesheet
   =================================================================== */

/* ===== 1. VARIABLES & GLOBAL SETTINGS ===== */
/* Global Variables */
:root {
    --primary-color: #0088cc;
    --dark-bg: #212529;
    --darker-bg: #1a1e21;
    --light-text: #ffffff;
    --muted-text: #adb5bd;
    --border-color: #2a2f34;
    --card-bg: #2a2f34;
    --card-hover-bg: #32383e;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

/* ===== 2. BASE ELEMENTS ===== */
body {
    /* Layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    
    /* Typography */
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--light-text);
    
    /* Visual */
    background-color: var(--dark-bg);
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;      /* IE and Edge */
    overflow-y: auto;              /* Keep scroll functionality */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* ----- 2.1 Body Scrollbar ----- */
/* Hide scrollbar for Webkit browsers (Chrome, Safari, Opera) */
body::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* ===== 3. INTERACTIVE ELEMENTS ===== */

/* ----- 3.1 Dropdown Menus ----- */
.dropdown-item {
    /* Layout */
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    clear: both;
    white-space: nowrap;
    
    /* Typography */
    font-weight: 400;
    color: var(--light-text);
    text-align: inherit;
    
    /* Visual */
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    color: var(--primary-color);
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.1);
}

.dropdown-item.active, 
.dropdown-item:active {
    color: #fff;
    background-color: var(--primary-color);
}


/* ----- 3.2 Links ----- */
a {
    /* Typography */
    color: var(--primary-color);
    text-decoration: none;
    
    /* Animation */
    transition: color 0.2s ease;
}

a:hover {
    color: #00a1f2;
    text-decoration: underline;
}


/* ===== 4. RESPONSIVE MEDIA ===== */

/* ----- 4.1 Responsive Video Wrapper ----- */
.responsive-video-wrapper {
    /* Layout */
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    
    /* Visual */
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.responsive-video-wrapper iframe,
.responsive-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ----- 4.2 Responsive Images ----- */
.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ----- 4.3 Media Type Specific Styling ----- */
.youtube-video .responsive-video-wrapper {
    border: 2px solid rgba(255, 0, 0, 0.3);
}

.self-hosted-video .responsive-video-wrapper {
    border: 2px solid rgba(0, 161, 242, 0.3);
}

.image {
    display: inline-block;
    max-width: 100%;
    margin: 10px auto;
}

/* ----- 4.4 Toggle Content ----- */
.toggle-content .media-container {
    margin-top: 15px;
    margin-bottom: 15px;
}


/* ===== 5. NAVIGATION COMPONENTS ===== */

/* ----- 5.1 Dropdown Menus ----- */
.dropdown-menu,
#mainNav .dropdown-menu,
.nav-pills .dropdown-menu,
.header-nav-main .dropdown-menu {
    /* Layout */
    padding: 0 !important;
    margin-top: 0 !important;
    width: auto !important;
    max-width: none !important;
    
    /* Visual */
    background-color: #212529 !important;
    border: 1px solid #343a40 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
}

/* ----- 18.5 Dropdown Scrollbars ----- */
/* Hide scrollbars in dropdowns */
.dropdown-menu,
.dropdown-menu[style*="overflow-y: scroll"] {
    scrollbar-width: none !important;      /* Firefox */
    -ms-overflow-style: none !important;  /* IE and Edge */
    overflow: auto !important;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari, Opera) */
.dropdown-menu::-webkit-scrollbar,
.dropdown-menu[style*="overflow-y: scroll"]::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Dropdown List Items */
.dropdown-menu li,
.dropdown-menu li a,
.dropdown-menu>li,
.dropdown-menu>li>a {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Dropdown Items */
.dropdown-menu .dropdown-item,
.dropdown-menu a {
    /* Layout */
    padding: 4px 15px !important;
    text-align: left !important;
    
    /* Typography */
    color: #0088cc !important;
    
    /* Visual */
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    
    /* Animation */
    transition: color 0.2s ease-in-out !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background-color: transparent !important;
    color: #0088cc !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove borders between items */
.dropdown-menu .dropdown-item+.dropdown-item,
.dropdown-menu li+li,
.dropdown-menu a+a {
    border-top: none !important;
    margin-top: 0 !important;
}


/* ===== 6. PAGE LAYOUT ===== */

/* ----- 6.1 Main Page Wrapper ----- */
.page-wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ----- 6.2 Main Content Area ----- */
.main {
    flex: 1;
    width: 100%;
    padding: 1.5rem 0 2.5rem;
    position: relative;
}

/* ----- 6.3 Section Styling ----- */
.section {
    position: relative;
    width: 100%;
}

/* ----- 6.4 Container ----- */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ----- 6.5 Layout Helpers ----- */
#mods-grid {
    min-height: 300px;
    position: relative;
}

/* ----- 6.6 Dropdown Toggle ----- */
.dropdown-toggle {
    /* Layout */
    display: flex;
    align-items: center;
    height: 100%;
    min-width: auto;
    gap: 0.3rem;
    padding: 0 0.75rem !important;
    
    /* Typography */
    font-size: 0.95em;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #00a8ff !important;
    
    /* Visual */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ----- 6.7 Dropdown Menu ----- */
.dropdown-menu {
    /* Layout */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin: 0 !important;
    min-width: 15rem !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    z-index: 1100 !important; /* Higher than sidebar */
    
    /* Visual */
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 4px !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) !important;
    
    /* Performance */
    transform: none !important;
    will-change: transform;
}

/* ----- 6.8 Dropdown Hover Behavior ----- */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block !important;
        pointer-events: auto !important;
    }
}

/* ----- 6.9 Responsive Header ----- */
@media (max-width: 991.98px) {
    #header {
        min-height: 66px !important;
        height: 66px !important;
    }
    #header .d-flex {
        padding: 8px 0 !important;
    }
}


/* ===== 7. UTILITY CLASSES ===== */

/* ----- 7.1 Positioning ----- */
.p-relative { position: relative; }
.p-absolute { position: absolute; }
.p-fixed  { position: fixed; }

/* ----- 7.2 Backgrounds ----- */
.background-transparent,
.bg-transparent,
.bg-transparent-hover:hover {
    background: transparent !important;
}

/* ----- 7.3 Spacing ----- */

/* Base Spacing */
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.pb-0 { padding-bottom: 0; }
.pt-0 { padding-top: 0; }

/* Custom Spacing */
.pt-3-5 { padding-top: 0.75rem; }
.pe-3-5 { padding-right: 0.75rem; }
.pb-3-5 { padding-bottom: 0.75rem; }
.ps-3-5 { padding-left: 0.75rem; }
.px-3-5 { padding: 0 0.75rem; }
.py-3-5 { padding: 0.75rem 0; }

/* Negative Margins */
.mt-n1 { margin-top: -0.25rem; }

/* Specific Margin Utilities */
.mt-3-5 {
    margin-top: 12px !important;
    margin-top: 0.75rem !important;
}

.me-3-5 {
    margin-right: 12px !important;
    margin-right: 0.75rem !important;
}

.mb-3-5 {
    margin-bottom: 12px !important;
    margin-bottom: 0.75rem !important;
}

.ms-3-5 {
    margin-left: 12px !important;
    margin-left: 0.75rem !important;
}

/* ----- 7.4 Responsive Spacing ----- */
/* Small devices (≥576px) */
@media (min-width: 576px) {
    .mb-sm-0 { margin-bottom: 0; }
    .mt-sm-0 { margin-top: 0; }
    .pb-sm-0 { padding-bottom: 0; }
    .pt-sm-0 { padding-top: 0; }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
    .mb-md-0 { margin-bottom: 0; }
    .mt-md-0 { margin-top: 0; }
    .pb-md-0 { padding-bottom: 0; }
    .pt-md-0 { padding-top: 0; }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
    .mb-lg-0 { margin-bottom: 0; }
    .mt-lg-0 { margin-top: 0; }
    .pb-lg-0 { padding-bottom: 0; }
    .pt-lg-0 { padding-top: 0; }
}

/* Extra large devices (≥1200px) */
@media (min-width: 1200px) {
    .mb-xl-0 { margin-bottom: 0; }
    .mt-xl-0 { margin-top: 0; }
    .pb-xl-0 { padding-bottom: 0; }
    .pt-xl-0 { padding-top: 0; }
}


/* ===== 8. TYPOGRAPHY ===== */

/* ----- 8.1 Text Colors ----- */
.text-muted { color: #999; }
html.dark .text-muted { color: #505461; }
.text-light { color: #FFF; }

/* ----- 8.2 Text Sizes ----- */
.text-7 { font-size: 2.8em; }  /* Used in headings */

/* ----- 8.3 Font Weights ----- */
.font-weight-normal { font-weight: 400; }
.font-weight-extra-bold { font-weight: 800; }


/* ===== 9. BORDERS & CORNERS ===== */

/* ----- 9.1 Border Radius ----- */
.rounded {
    border-radius: 5px !important;
}

/* ----- 9.2 Border Sides ----- */
.border-top {
    border-top: 1px solid #DADADA !important;
}

.border-bottom {
    border-bottom: 1px solid #DADADA !important;
}

.border-left {
    border-left: 1px solid #DADADA !important;
}

.border-right { 
    border-right: 1px solid #DADADA; 
}

/* ----- 9.3 Special Border Cases ----- */
.header-no-border-bottom {
    border-bottom: none !important;
}


/* ===== 10. LOADING & ANIMATIONS ===== */

/* ----- 10.1 Spinner ----- */
.spinner-border {
    /* Layout */
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    
    /* Visual */
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    
    /* Animation */
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { 
        transform: rotate(360deg); 
    }
}


/* ===== 11. WIDTH UTILITIES ===== */

/* ----- 11.1 Base Widths ----- */
.w-sm-100pct {
    width: 100% !important;
}

/* ----- 11.2 Responsive Widths ----- */

/* ----- 11.2.1 Medium Devices (≥768px) ----- */
@media (min-width: 768px) {
    .w-md-auto { width: auto !important; }
    .w-md-25pct { width: 25% !important; }
    .w-md-50pct { width: 50% !important; }
    .w-md-75pct { width: 75% !important; }
    .w-md-100pct { width: 100% !important; }
}

/* ----- 11.2.2 Large Devices (≥992px) ----- */
@media (min-width: 992px) {
    .w-lg-auto { width: auto !important; }
    .w-lg-25pct { width: 25% !important; }
    .w-lg-50pct { width: 50% !important; }
    .w-lg-75pct { width: 75% !important; }
    .w-lg-100pct { width: 100% !important; }
}

/* ----- 11.2.3 Extra Large Devices (≥1200px) ----- */
@media (min-width: 1200px) {
    .w-xl-auto { width: auto !important; }
    .w-xl-25pct { width: 25% !important; }
    .w-xl-50pct { width: 50% !important; }
    .w-xl-75pct { width: 75% !important; }
    .w-xl-100pct { width: 100% !important; }
}

/* ----- 11.3 Mobile-Specific Widths (≤991px) ----- */
@media (max-width: 991px) {
    .w-auto-mobile { width: auto !important; }
    .w-100-mobile { width: 100% !important; }
}

/* ----- 11.4 Viewport Widths ----- */
.width-50vw { width: 50vw; }
.width-100vw { width: 100vw; }

/* ----- 11.5 Minimum Width ----- */
.min-width-0 { min-width: 0 !important; }


/* ===== 12. LAYOUT CONTAINERS ===== */

/* ----- 12.1 Standard Container ----- */
@media (min-width: 1200px) {
    .container:not(.container-bs):not(.container-xl-custom):not(.container-xxl-custom) {
        max-width: 1140px;
    }
}

/* ----- 12.2 Custom Container Sizes ----- */
@media (min-width: 1440px) {
    .container-xl-custom { max-width: 1440px; }
    .container-xxl-custom { max-width: 1630px; }
}


/* ===== 13. FLUID COLUMNS ===== */

/* ----- 13.1 Fluid Column Base ----- */
[class*="fluid-col-"] {
    position: relative;
}

/* ----- 13.2 Fluid Column Content ----- */
[class*="fluid-col-"] .fluid-col {
    position: absolute;
    left: 15px;
}

/* ----- 13.3 Fluid Column Alignment ----- */
[class*="fluid-col-"] .fluid-col.fluid-col-left {
    left: auto;
    right: 15px;
}

.fluid-col-6 {
    min-height: 33vw;
}

.fluid-col-6 .fluid-col {
    width: calc(50vw - 15px);
}

@media (min-width: 768px) {
    .fluid-col-md-6 {
        min-height: 33vw;
    }

    .fluid-col-md-6 .fluid-col {
        width: calc(50vw - 15px);
    }
}

@media (max-width: 767px) {
    .fluid-col-md-6 {
        min-height: 64.5vw !important;
    }
}

/* Gutter SM */
.row-gutter-sm {
    margin-right: -10px;
    margin-left: -10px;
}

.row-gutter-sm [class^="col-"],
.row-gutter-sm .col,
.row-gutter-sm .col-auto,
.row-gutter-sm [class*=" col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* ----- 14.2 Order Utilities ----- */
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-6 { order: 6; }

/* ----- 14.3 Custom Grid Columns ----- */
.col-1-5,
.col-md-1-5,
.col-lg-1-5,
.col-2-5,
.col-md-2-5 {
    position: relative;
    min-height: 1px;
    width: 100%;
    padding: 0 15px;
}

/* ----- 14.4 Custom Column Sizes ----- */
.col-1-5 {
    flex: 0 0 20%;
    max-width: 20%;
}

.col-2-5 {
    flex: 0 0 40%;
    max-width: 40%;
}

@media (min-width: 768px) {
    .col-md-1-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .col-md-2-5 {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* RTL */
/* ===== 15. COLUMN POSITIONING ===== */

/* ----- 15.1 Column Pull (Move Left) ----- */
.col-pull-0 { margin-left: 0; }
.col-pull-6 { margin-left: -50%; }
.col-pull-12 { margin-left: -100%; }

/* ----- 15.2 Column Push (Move Right) ----- */
.col-push-0 { margin-left: 0; }
.col-push-6 { margin-left: 50%; }
.col-push-12 { margin-left: 100%; }


/* ===== 16. TRANSFORM UTILITIES ===== */

/* ----- 16.1 Left Rotation ----- */
.rotate-l-45 { transform: rotate(-45deg); }
.rotate-l-90 { transform: rotate(-90deg); }
.rotate-l-180 { transform: rotate(-180deg); }

/* ----- 16.2 Right Rotation ----- */
.rotate-r-45 { transform: rotate(45deg); }
.rotate-r-90 { transform: rotate(90deg); }
.rotate-r-180 { transform: rotate(180deg); }


/* ===== 17. RESPONSIVE COLUMN POSITIONING ===== */

/* ----- 17.1 Small Devices (≥576px) ----- */
@media (min-width: 576px) {
    /* Pull */
    .col-sm-pull-0 { margin-left: 0; }
    .col-sm-pull-6 { margin-left: -50%; }
    .col-sm-pull-12 { margin-left: -100%; }
    
    /* Push */
    .col-sm-push-0 { margin-left: 0; }
    .col-sm-push-6 { margin-left: 50%; }
    .col-sm-push-12 { margin-left: 100%; }
}

/* ----- 17.2 Medium Devices (≥768px) ----- */
@media (min-width: 768px) {
    /* Pull */
    .col-md-pull-0 { margin-left: 0; }
    .col-md-pull-6 { margin-left: -50%; }
    .col-md-pull-12 { margin-left: -100%; }
    
    /* Push */
    .col-md-push-6 { margin-left: 50%; }
    .col-md-push-12 { margin-left: 100%; }
}

@media (min-width: 768px) {
    /* ----- 17.3 Medium Device Rotations ----- */
    .rotate-md-r-45 { transform: rotate(45deg); }
    .rotate-md-r-90 { transform: rotate(90deg); }
}

/* ----- 17.4 Large Devices (≥992px) ----- */
@media (min-width: 992px) {
    /* Pull */
    .col-lg-pull-0 { margin-left: 0; }
    .col-lg-pull-6 { margin-left: -50%; }
    .col-lg-pull-12 { margin-left: -100%; }
    
    /* Push */
    .col-lg-push-0 { margin-left: 0; }
    .col-lg-push-6 { margin-left: 50%; }
    .col-lg-push-12 { margin-left: 100%; }
    
    /* Rotations */
    .rotate-lg-r-45 { transform: rotate(45deg); }
    .rotate-lg-r-90 { transform: rotate(90deg); }
}

/* ----- 17.5 Extra Large Devices (≥1200px) ----- */
@media (min-width: 1200px) {
    /* Pull */
    .col-xl-pull-0 { margin-left: 0; }
    .col-xl-pull-6 { margin-left: -50%; }
    .col-xl-pull-12 { margin-left: -100%; }
    
    /* Push */
    .col-xl-push-0 { margin-left: 0; }
    .col-xl-push-6 { margin-left: 50%; }
    .col-xl-push-12 { margin-left: 100%; }
    
    /* Rotations */
    .rotate-xl-r-45 { transform: rotate(45deg); }
    .rotate-xl-r-90 { transform: rotate(90deg); }
}

/* ----- 17.6 Extra Extra Large Devices (≥1400px) ----- */
@media (min-width: 1400px) {
    /* Pull */
    .col-xxl-pull-0 { margin-left: 0; }
    .col-xxl-pull-6 { margin-left: -50%; }
    .col-xxl-pull-12 { margin-left: -100%; }
    
    /* Push */
    .col-xxl-push-6 { margin-left: 50%; }

    .col-xxl-push-12 {
        margin-left: 100%;
    }

    .col-xxl-push-0 {
        margin-left: 0;
    }
}

@media (min-width: 1400px) {
    /* Rotation utilities for xxl breakpoint - simplified */
    .rotate-xxl-r-45 {
        transform: rotate(45deg);
    }

    .rotate-xxl-r-90 {
        transform: rotate(90deg);
    }
}


/* ===== 18. SCROLLBARS & OVERFLOW ===== */

/* ----- 18.1 HTML Scrollbar ----- */
html {
    overflow-x: hidden !important;
    height: auto !important;
    scrollbar-width: none !important;      /* Firefox */
    -ms-overflow-style: none !important;  /* IE/Edge */
}

/* ----- 18.2 Loading Overlay State ----- */
html.loading-overlay-showing,
body.loading-overlay-showing {
    overflow: auto !important;
    height: auto !important;
}

/* ----- 18.3 Body Scroll Settings ----- */
body {
    overflow: auto !important;
    min-height: 100% !important;
    height: auto !important;
}

/* ----- 18.4 Webkit Scrollbar (Chrome/Safari) ----- */
html::-webkit-scrollbar {
    display: none !important;  /* Hide scrollbar */
    width: 0 !important;      /* Remove scrollbar space */
    height: 0 !important;     /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar transparent */
}


/* ===== 19. BASE STYLES ===== */

/* ----- 19.1 Root Elements ----- */
body,
html {
    background-color: #212529;
    color: #fff;
    padding-bottom: 40px;  /* For fixed footer */
}

/* ----- 19.2 Typography ----- */
p,
li,
pre {
    color: #fff;
}

/* ----- 19.3 Links ----- */
a {
    color: #0088cc;
}

/* ----- 19.4 Support Section ----- */
.support-section {
    margin-top: 2rem;
    padding: 1rem 0;
}

/* ===== 20. THEME & LAYOUT ===== */

/* ----- 20.1 Dark Theme Elements ----- */
.main.style1,
#section-concept + .container-fluid,
.container-fluid,
.mod-grid,
body > div,
.body,
.header-container,
.header-row,
.header-column,
.header-logo,
.header-nav,
.header-nav-main,
.nav,
.dropdown-menu,
.dropdown-item,
.mod-list,
.mod-item,
.footer,
.copyright,
.header-body,
.header {
    background-color: #212529;
}

/* ----- 20.2 Accent Colors & Typography ----- */
.container-fluid h1.text-light,
.container-fluid .text-light,
.header-title h1,
.header-title h2,
.header-title h3,
.header-title span,
.navbar-brand {
    color: #0088cc !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== 21. NAVIGATION ===== */

/* ----- 21.1 Navigation Links ----- */
.nav-link {
    background-color: transparent;
}

/* ===== 22. SIDEBAR ===== */

/* ----- 22.1 Sidebar Container ----- */
.sidebar {
    background-color: #1c2128;
    padding: 10px;
    border-radius: 5px;
    position: relative;
    z-index: 1000; /* Base z-index for sidebar */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ----- 22.2 Mod Items ----- */
.mod-item {
    margin-bottom: 5px;
}

/* ----- 22.3 Filter Buttons ----- */
.mod-filter-button {
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    background: none;
    border: none;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    outline: none;
}

/* ===== 23. MOD GRID ===== */

/* ----- 23.1 Empty State ----- */
#mod-grid:empty + .no-mods-message,
#mod-grid + .no-mods-message {
    text-align: center !important;
    display: block !important;
    margin-top: 5px !important;
    color: #fff !important;
}

/* ----- 23.2 Grid Layout ----- */
.mod-grid,
#mod-grid {
    display: -ms-grid;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    max-width: 1400px;
    overflow-y: auto;
    scrollbar-width: none;        /* Modern scrollbar styling */
}

/* ----- 23.3 Grid Centered Content ----- */
#mod-grid .col-12.text-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
    text-align: center;
}

/* ----- 23.4 Grid Text Elements ----- */
#mod-grid .text-danger,
#mod-grid .text-light {
    display: block;
    width: 100%;
    text-align: center;
}

/* ----- 23.5 Card Centering ----- */
/* Standard card centering */
.mod-grid > .mod-card:only-child,
#mod-grid > .mod-card:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0 auto;
    max-width: 320px;
}

/* Large card centering */
.mod-grid > .config-card:only-child,
#mod-grid > .config-card:only-child,
.mod-grid > .large-card:only-child,
#mod-grid > .large-card:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0 auto;
    max-width: 660px;
}

/* ===== 24. TEXT & TYPOGRAPHY ===== */

/* ----- 24.1 Error Messages ----- */
.text-danger {
    font-size: 20px;
    font-weight: 500;
    color: #ff5555 !important;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
}

/* ----- 24.2 Boolean Values ----- */
.boolean-value {
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
}

.boolean-true { color: #2ecc71 !important; }
.boolean-false { color: #e74c3c !important; }

/* ----- 24.3 Light Text ----- */
.text-light {
    font-size: 14px;
    font-family: monospace;
    padding: 8px 12px;
    background-color: transparent;
    color: #aaaaaa !important;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* ===== 25. UI COMPONENTS ===== */

/* ----- 25.1 Dropdowns ----- */
.dropdown-menu li {
    border: none !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: transparent !important;
}

/* ----- 25.2 Mod Lists ----- */
.mod-list {
    background-color: #1c2128;
    margin: 0 !important;
    padding: 0 !important;
}

.mod-item {
    background-color: transparent;
}

/* ----- 25.3 Scrollable Elements ----- */
.mod-card-body,
.mod-list,
.dropdown-menu,
.expanded-card-body {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== 26. BUTTONS ===== */

/* ----- 26.1 Base Button Styles ----- */
.filter-button,
.mod-filter-button {
    box-sizing: border-box !important;
    margin: 0 !important;
    outline: none !important;
    border-width: 1px !important;
    height: auto !important;
    text-align: center !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
    position: relative !important;
}

/* ----- 26.2 Button States ----- */
.filter-button:active,
.filter-button:focus,
.mod-filter-button:active,
.mod-filter-button:focus {
    position: relative !important;
    border-width: 1px !important;
}

/* ----- 26.3 Button Groups ----- */
.filter-buttons {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-button {
    margin: 0 5px;
}

/* ===== 27. LAYOUT ===== */

/* ----- 27.1 Modal Lock ----- */
.modal-open-no-scroll {
    overflow: hidden !important;
    padding-right: var(--scrollbar-width, 0) !important;
}

/* ----- 27.2 Container ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ----- 27.3 Search Input ----- */
#search-input {
    max-width: 70%;
    margin: 0 auto;
    display: block;
}

/* ----- 27.4 Main Content Area ----- */
.main-content-column {
    width: 65%;
    margin-left: 5%;
}

/* ----- 27.5 Sidebar Layout ----- */
.sidebar-column {
    width: 22%;
    margin-left: 3%;
}

/* ----- 27.6 Row Layout ----- */
.row {
    display: flex;
    flex-wrap: wrap;
}

/* ===== 28. SIDEBAR ===== */

/* ----- 28.1 Sidebar Container ----- */
.sidebar {
    background-color: #1c2128;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 136, 204, 0.4);
    height: 500px;
    display: flex;
    flex-direction: column;
}

/* ----- 28.2 Mod List ----- */
.mod-list {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scrollbar-width: none;        /* Modern scrollbar styling */
}

/* ===== 29. PAGE LAYOUT ===== */

/* ----- 29.1 Main Content ----- */
.main {
    background-color: #212529;
    padding-top: 0;
}

/* ----- 29.2 Body & Header ----- */
body {
    padding-top: 0;
}

#header {
    position: relative;
    z-index: 1030;
}

#section-concept {
    padding-top: 100px;
    margin-top: 0;
}

.custom-header-min-height-1 {
    min-height: auto;
    padding-top: 0;
}

/* ===== 30. TYPOGRAPHY ===== */

/* ----- 30.1 Text Styles ----- */
.style15 {
    margin-bottom: 20px !important;
    line-height: 1.4;
    word-spacing: 0.1em;
    letter-spacing: 0.05em;
}

.style16 {
    margin-bottom: 15px !important;
    line-height: 1.6;
    word-spacing: 0.1em;
    letter-spacing: 0.03em;
}

.col-lg-12.text-center {
    margin-bottom: 30px !important;
}

/* ===== 31. SEARCH & FILTERS ===== */

/* ----- 31.1 Search Input ----- */
#search-input {
    padding: 12px 15px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ----- 31.2 Filter Buttons ----- */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-button {
    background-color: rgba(201, 201, 201, 0);
    color: white;
    border: 1px solid rgba(173, 173, 173, 1);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----- 31.3 Filter Button States ----- */



/* ===== 32. FILTER TYPES ===== */

/* ----- 32.1 Item Filter ----- */
.item-filter:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}
.item-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ----- 32.2 Piece Filter ----- */
.piece-filter:hover,
.piece-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ----- 32.3 Creature Filter ----- */
.creature-filter:hover,
.creature-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ----- 32.4 Mount Filter ----- */
.mount-filter:hover,
.mount-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ----- 32.5 Book Filter ----- */
.book-filter:hover,
.book-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ----- 32.6 Summon Filter ----- */
.summon-filter:hover,
.summon-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ----- 32.7 Transform Filter ----- */
.transform-filter:hover,
.transform-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ----- 32.8 Attack Filter ----- */
.attack-filter:hover,
.attack-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ----- 32.9 Config Filter ----- */
.config-filter:hover,
.config-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ----- 32.10 Prefab Filter ----- */
.prefab-filter:hover,
.prefab-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

/* ===== 33. GRID LAYOUT ===== */

/* ----- 33.1 Base Grid ----- */
.mod-grid,
#mod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    max-width: 1400px;
    overflow-y: auto;
    scrollbar-width: none;
}

/* Grid item styling */
.mod-grid > *,
#mod-grid > * {
    margin: 0;
}

/* Large Desktops (≤1200px) */
@media (max-width: 1200px) {
    .mod-grid,
    #mod-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (≤900px) */
@media (max-width: 900px) {
    .mod-grid,
    #mod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices (≤600px) */
@media (max-width: 600px) {
    .mod-grid,
    #mod-grid {
        grid-template-columns: 1fr;
        scrollbar-width: none;
    }
}

/* ===== 34. MESSAGES & STATES ===== */

/* ----- 34.1 No Mods Message ----- */
.no-mods-message {
    grid-column: 1 / -1;
    width: 80%;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 20px;
}

/* ----- 34.2 Empty State Message ----- */
.empty-state-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 300px;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    box-sizing: border-box;
    grid-area: 1 / 2 / 1 / 4;
}

/* Responsive adjustments for empty state */
@media (max-width: 992px) {
    .empty-state-message {
        min-height: 250px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .empty-state-message {
        min-height: 200px;
        padding: 1rem;
    }
}

/* Content width limitation */
.empty-state-message > * {
    max-width: 800px;
    width: 100%;
}

/* ===== 35. GLOBAL STYLES ===== */

/* ----- 35.1 Global Scrollbar ----- */
html {
    scrollbar-width: none;
    overflow-y: scroll;
}

/* ===== 36. MOD GRID STYLES ===== */
/* Note: Additional mod grid styles are handled with inline styles */
/* Card styling */
.mod-card {
    background-color: rgba(33, 37, 41, 0.8);
    border-radius: 6px;
    padding: 5px;
    height: 360px;

    width: 95%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    margin: 0;
}

/* ===== 37. CARD VARIANTS ===== */

/* ----- 37.1 Large Card (Configs) ----- */
.large-card {
    grid-column: span 2;    /* Span 2 columns */
    grid-row: span 2;      /* Span 2 rows */
    height: 740px;         /* Double height + gap */
    max-width: 660px;      /* Double width + gap */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* Start content from the top */
}

/* ----- 37.2 Single Card Centering ----- */
.single-card {
    grid-column: 1 / -1;   /* Span all columns */
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- 37.3 Single Config Card ----- */
.single-config-card {
    grid-column: 1 / -1;   /* Span all columns */
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 38. CARD LAYOUT ===== */

/* ----- 38.1 Large Card Body ----- */
.large-card .mod-card-body {
    flex: 1;
    overflow: hidden;       /* Prevent body from scrolling */
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    margin-bottom: 0;
    max-height: none !important;  /* Override any max-height constraints */
}

/* ----- 38.2 Config Group ----- */
.large-card .config-group,
.config-group {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    flex: 1 1 auto;       /* Allow it to grow and shrink as needed */
    display: flex;
    flex-direction: column;
}

/* ----- 38.3 Last Config Group ----- */
.config-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ===== 39. CARD COMPONENTS ===== */

/* ----- 39.1 Group Header ----- */
.group-header {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    padding-bottom: 5px;
    text-transform: uppercase;
}

.config-item {
    margin-bottom: 10px;
}

/* Tag styling for all card types */
/* Base tag styling */
.type-tag,
.config-tag,
.item-tag,
.recipe-tag,
.piece-tag,
.location-tag,
.statuseffect-tag,
.creature-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* ===== 40. CARD TAGS ===== */

/* ----- 40.1 Config Tag ----- */
.config-tag {
    background-color: #f1c40f;
    color: #000;
}

/* ----- 40.2 Attack Card Tag ----- */
.mod-card-attack-card {
    background-color: #e74c3c;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    text-transform: uppercase;
}

/* ===== 41. CARD INTERACTIONS ===== */

/* ----- 41.1 Card Hover Effects ----- */
.mod-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mod-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 136, 204, 0.3);
    border-left-color: rgba(0, 136, 204, 0.3) !important;  /* Force blue spine on hover */
}

/* ===== 42. CARD HEADER ===== */

/* ----- 42.1 Card Header ----- */
.mod-card-header {
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3px;
}

/* ----- 42.2 Card Name ----- */
.mod-name {
    font-size: 12px;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    max-width: 75%;
}

/* ===== 43. CARD ACTIONS ===== */

/* ----- 43.1 Action Buttons Container ----- */
.card-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ----- 43.2 Modal Card Actions ----- */
.expanded-card-header .card-actions {
    gap: 20px;
    padding: 5px;
}

/* ----- 43.3 Action Buttons ----- */
.copy-button,
.expand-button,
.close-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    margin: -8px;
    outline: none;
    transition: all 0.2s ease;
    position: relative;  /* For z-index context */
    z-index: 5;         /* Ensure buttons stay above other elements */
}

/* ----- 43.4 Button Hover States ----- */
.copy-button:hover,
.expand-button:hover,
.close-button:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ----- 43.5 Copied State ----- */
.copy-button.copied {
    color: #28a745;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* ===== 44. MODAL STYLES ===== */

/* ----- 44.1 Modal Buttons ----- */
.expanded-card-header .copy-button,
.expanded-card-header .close-button {
    font-size: 20px;
    padding: 10px;
    margin: -10px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

/* ----- 44.2 Modal Button Hover States ----- */
.expanded-card-header .copy-button:hover,
.expanded-card-header .close-button:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* ===== 45. CARD TYPOGRAPHY ===== */

/* ----- 45.1 Card Name ----- */
.mod-name {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ----- 45.2 Mod Type Badge ----- */
.mod-type {
    display: inline-block;
    background-color: #0088cc;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ===== 46. CARD BODY ===== */

/* ----- 46.1 Card Body ----- */
.mod-card-body {
    flex: 1;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- 46.2 Card Body Scrollbar ----- */
.mod-card-body::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* ===== 47. STAT ROWS ===== */

/* ----- 47.1 Stat Row ----- */
.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 4px 6px;
    transition: background-color 0.2s;
    flex-wrap: wrap;
    min-width: 0;
}

/* ----- 47.2 Stat Row Hover ----- */
.stat-row:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

/* ----- 47.3 Stat Label ----- */
.stat-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    flex: 1 0 40%;
    text-transform: capitalize;
    margin-right: 4px;
    min-width: 0;
    white-space: normal;
    overflow: visible;
}

/* ----- 47.4 Stat Value ----- */
.stat-value {
    color: #fff;
    font-weight: 600;
    flex: 1 0 50%;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-align: right;
    word-break: break-word;
}

/* ===== 48. NESTED LAYOUTS ===== */

/* ----- 48.1 Stacked Rows ----- */
.stacked-row {
    flex-direction: column;
    align-items: flex-start;
}

.stacked-row .stat-label {
    flex: 1 0 100%;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.stacked-row .stat-value {
    flex: 1 0 100%;
    text-align: left;
    padding-left: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

/* ----- 48.2 Nested Objects ----- */
.nested-object {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px;
    margin-top: 4px;
    font-size: 0.9em;
}

.nested-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.nested-key {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
}

/* ----- 48.3 Nested Lists ----- */
.nested-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
    color: #fff;
}

.nested-list li {
    margin-bottom: 4px;
}

/* ===== 49. TEXT STATES ===== */

/* ----- 49.1 Success State ----- */
.text-success {
    color: #28a745;
}

/* ----- 49.2 Danger State ----- */
.text-danger {
    color: #dc3545;
}

/* ----- 49.3 Warning State ----- */
.text-warning {
    color: #ffc107;
}

/* ----- 49.4 Muted Text ----- */
.text-muted {
    color: #6c757d;
    font-style: italic;
}

/* ===== 50. MODAL COMPONENTS ===== */

/* ----- 50.1 Modal Overlay ----- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ----- 50.2 Modal Content ----- */
.modal-content {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #1a1e21;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== 51. EXPANDED CARD ===== */

/* ----- 51.1 Base Styles ----- */
.expanded-mod-card {
    background-color: rgba(33, 37, 41, 0.9);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 90vh;
}

/* ----- 51.2 Card Header ----- */
.expanded-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0 15px;
    position: sticky;
    top: 0;
    background-color: rgba(33, 37, 41, 0.95);
    z-index: 10;
}

.expanded-card-header h2 {
    font-size: 24px;
    margin: 0;
    color: #fff;
}

/* ----- 51.3 Card Body ----- */
.expanded-card-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);  /* Hardware acceleration */
    backface-visibility: hidden;
    will-change: transform;
    scroll-behavior: auto;
}

/* ----- 51.4 Custom Scrollbar ----- */
.expanded-card-body::-webkit-scrollbar {
    width: 6px;
}

.expanded-card-body::-webkit-scrollbar-track {
    background: transparent;
}

.expanded-card-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* ----- 51.5 Card Footer ----- */
.expanded-card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== 52. CARD FOOTER ===== */

/* ----- 52.1 Mod Card Footer ----- */
.mod-card-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ----- 52.2 Source Info ----- */
.source-info {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== 53. TAG STYLES ===== */

/* ----- 53.1 Base Tag Styles ----- */
.creature-tag,
.item-tag,
.piece-tag,
.config-tag,
.section-tag,
.attack-tag,
.book-tag,
.summon-tag,
.transform-tag,
.mount-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* ----- 53.2 Creature Tag ----- */
.creature-tag {
    background-color: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

/* ----- 53.3 Item Tag ----- */
.item-tag {
    background-color: rgba(26, 188, 156, 0.1);
    color: #1abc9c;
}

/* ----- 53.4 Piece Tag ----- */
.piece-tag {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

/* ----- 53.5 Config Tag ----- */
.config-tag {
    background-color: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

/* ----- 53.6 Section Tag ----- */
.section-tag {
    background-color: rgba(0, 136, 204, 0.1);
    color: #0088cc;
}

/* ----- 53.7 Attack Tag ----- */
.attack-tag {
    background-color: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

/* ----- 53.8 Book Tag ----- */
.book-tag {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

/* ----- 53.9 Summon Tag ----- */
.summon-tag {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

/* ----- 53.10 Transform Tag ----- */
.transform-tag {
    background-color: rgba(0, 230, 118, 0.1);
    color: #00e676;
}

/* ----- 53.11 Mount Tag ----- */
.mount-tag {
    background-color: rgba(211, 84, 0, 0.1);
    color: #d35400;
}

/* ===== 54. CARD VARIANTS ===== */

/* ----- 54.1 Attack Card ----- */
.attack-card {
    border-left: 3px solid #c0392b;
}

/* ----- 54.2 Prefab Card ----- */
.prefab-card {
    border-left: 3px solid #0088cc;
}

.prefab-card .mod-name {
    color: #0088cc;
}

/* ----- 54.3 Prefab Tag ----- */
.prefab-tag {
    background-color: rgba(0, 136, 204, 0.1);
    color: #0088cc;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    margin-right: 5px;
}

/* ===== 55. PREFAB STYLES ===== */

/* ----- 55.1 Prefab Content ----- */
.prefab-content {
    display: block;
    width: 100%;
    height: 150px;
    margin: 0;
    padding: 8px 10px;
    background-color: #2a2e33;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #e0e0e0;
    border: none;
    border-radius: 0;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
    text-align: left;
    line-height: 1.2;
}

/* ----- 55.2 Prefab Scrollbar ----- */
.prefab-content::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* ----- 55.3 Prefab Card Body ----- */
.prefab-card .mod-card-body {
    padding: 0;
    margin: 0;
    background-color: #2a2e33;
    border-radius: 0;
    height: 150px;
    display: flex;
    overflow: auto;
}

/* ----- 55.4 Prefab Content Pre ----- */
.prefab-content pre {
    margin: 0;
    color: #e0e0e0;
}

/* ===== 56. EXPANDED PREFAB ===== */

/* ----- 56.1 Expanded Prefab Content ----- */
.prefab-content-expanded {
    max-height: 70vh;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ----- 56.2 Expanded Prefab Scrollbar ----- */
.prefab-content-expanded::-webkit-scrollbar {
    width: 8px;
}

.prefab-content-expanded::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.prefab-content-expanded::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* ----- 56.3 Prefab Content Pre ----- */
.prefab-content-expanded pre {
    margin: 0;
    color: #e0e0e0;
}

/* ===== 57. CARD TYPE STYLES ===== */

/* ----- 57.1 Attack Card ----- */
.attack-card .mod-name {
    color: #c0392b;
}

.attack-card .mod-type {
    background-color: #c0392b;
}

/* ----- 57.2 Book Card ----- */
.book-card {
    border-left: 3px solid #27ae60;
}

.book-card .mod-name {
    color: #27ae60;
}

.book-card .mod-type {
    background-color: #27ae60;
}

/* ----- 57.3 Summon Card ----- */
.summon-card {
    border-left: 3px solid #2ecc71;
}

.summon-card .mod-name {
    color: #2ecc71;
}

.summon-card .mod-type {
    background-color: #2ecc71;
}

/* ----- 57.4 Transform Card ----- */
.transform-card {
    border-left: 3px solid #00e676;
}

.transform-card .mod-name {
    color: #00e676;
}

.transform-card .mod-type {
    background-color: #00e676;
}

/* ----- 57.5 Mount Card ----- */
.mount-card {
    border-left: 3px solid #d35400;
}

.mount-card .mod-name {
    color: #d35400;
}

.mount-card .mod-type {
    background-color: #d35400;
}

/* ----- 57.6 Config Card ----- */
.config-card {
    border-left: 3px solid #f1c40f;
}

.config-card .mod-name {
    font-size: 16px;
    color: #f1c40f;
}

.config-card .mod-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-number {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ----- 57.7 Section Card ----- */
.section-card {
    border-left: 3px solid #0088cc;
}

.section-card .mod-name {
    color: #0088cc;
}

/* ===== 58. CARD TYPE STYLES (CONTINUED) ===== */

/* ----- 58.1 Creature Card ----- */
.creature-card {
    border-left: 3px solid #e67e22;
}

.creature-card .mod-name {
    color: #e67e22;
}

.creature-card .mod-type {
    background-color: #e67e22;
}

/* ----- 58.2 Item Card ----- */
.item-card {
    border-left: 3px solid #1abc9c;
}

.item-card .mod-name {
    color: #1abc9c;
}

.item-card .mod-type {
    background-color: #1abc9c;
}

/* ----- 58.3 Piece Card ----- */
.piece-card {
    border-left: 3px solid #9b59b6;
}

.piece-card .mod-name {
    color: #9b59b6;
}

.piece-card .mod-type {
    background-color: #9b59b6;
}

/* ===== 59. TAG STYLES (CONTINUED) ===== */

/* ----- 59.1 Config Tag ----- */
.config-tag {
    display: inline-block;
    background-color: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== 60. RESPONSIVE ADJUSTMENTS ===== */

/* ----- 60.1 Tablet View (max-width: 768px) ----- */
@media (max-width: 768px) {
    .mod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- 60.2 Mobile View (max-width: 576px) ----- */
@media (max-width: 576px) {
    .mod-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
 * MODAL STYLES FOR PREFAB EXPANSION
 * ======================================================== */

/* ===== 61. MODAL COMPONENTS ===== */

/* ----- 61.1 Modal Container ----- */
.mod-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ----- 61.2 Active Modal State ----- */
.mod-modal.active {
    opacity: 1;
    visibility: visible;
}

/* ----- 61.3 Modal Content ----- */
.mod-modal-content {
    background-color: #212529;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border-left: 4px solid #0088cc;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

/* ----- 61.4 Active Modal Content ----- */
.mod-modal.active .mod-modal-content {
    transform: translateY(0);
}

/* ===== 62. MODAL HEADER ===== */

/* ----- 62.1 Modal Header Container ----- */
.mod-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ----- 62.2 Modal Title ----- */
.mod-modal-header h2 {
    margin: 0;
    color: #0088cc;
    font-size: 1.5rem;
}

/* ===== 63. MODAL ACTIONS ===== */

/* ----- 63.1 Actions Container ----- */
.modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

/* ===== 64. MODAL BUTTONS ===== */

/* ----- 64.1 Copy Button ----- */
.copy-modal-button {
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.3);
    color: #0088cc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-modal-button i {
    font-size: 0.9em;
}

/* ----- 64.2 Copy Button Hover ----- */
.copy-modal-button:hover {
    color: #0088cc;
}

/* ----- 64.3 Copied State ----- */
.copy-modal-button.copied {
    color: #28a745;
}

/* ----- 64.4 Close Button ----- */
.close-modal-button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0 5px;
}

/* ----- 64.5 Close Button Hover ----- */
.close-modal-button:hover {
    color: #fff;
}

/* ===== 65. MODAL BODY ===== */

/* ----- 65.1 Modal Body Container ----- */
.mod-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ===== 66. CONFIG CARD IN MODAL ===== */
.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: #1a1e21;
}

.config-section {
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.config-section-header {
    padding: 12px 15px;
    background: rgba(0, 136, 204, 0.1);
    border-bottom: 1px solid rgba(0, 136, 204, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.config-section-header:hover {
    background: rgba(0, 136, 204, 0.15);
}

.config-section-header h4 {
    margin: 0;
    color: #0088cc;
    font-size: 1.1rem;
    font-weight: 500;
}

.config-section-content {
    padding: 15px;
    display: none;
}

.config-section.expanded .config-section-content {
    display: block;
}

.config-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-item:last-child {
    border-bottom: none;
}

.config-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.config-item-name {
    font-weight: 500;
    color: #e0e0e0;
}

.config-item-type {
    color: #aaa;
    font-size: 0.85rem;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
}

.config-item-description {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.5;
}

.config-item-default {
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* Toggle switch for sections */
.toggle-icon {
    transition: transform 0.3s ease;
}

.config-section.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* ===== 67. EXPANDED PREFAB IN MODAL ===== */

/* ----- 66.1 Expanded Prefab Content ----- */
.prefab-content-expanded {
    background-color: #2a2e33;
    padding: 8px 10px;
    overflow-y: auto;
    flex: 1;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #e0e0e0;
    text-align: left;
    line-height: 1.2;
}

/* ----- 66.2 Prefab Content Scrollbar ----- */
.prefab-content-expanded::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* ===== 67. HIDE SCROLLBARS IN ALL MODALS ===== */

/* Hide scrollbars in modal content while maintaining scrolling functionality */
.modal-content {
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.expanded-card-body {
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;       /* IE and Edge */
    overflow-y: auto;
}

.expanded-card-body::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* ===== 67. MODAL FOOTER ===== */

/* ----- 67.1 Footer Container ----- */
.mod-modal-footer {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
}

/* ----- 67.2 Source Info in Footer ----- */
.mod-modal-footer .source-info {
    color: #0088cc;  /* Blue color to match title and spine */
}

/* ===== 68. MODAL STATES ===== */

/* ----- 68.1 Modal Open State ----- */
body.modal-open {
    overflow: hidden;
}

/* ===== 69. BUTTON STYLES ===== */

/* ----- 69.1 Default Button ----- */
.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #CCC;
}

/* ===== 70. BUTTON EFFECTS ===== */

/* ----- 70.1 Swap Effect ----- */
.btn-swap-1:hover > :nth-child(1) {
    transform: translate(-50%, -120%);
    opacity: 0;
}

.btn-swap-1:hover > :nth-child(2) {
    transform: none;
    opacity: 1;
}

/* ===== 71. BUTTON ICONS ===== */

/* ----- 71.1 Left Icon ----- */
.btn-icon i {
    margin-right: 10px;
}

/* ----- 71.2 Right Icon ----- */
.btn-icon-right i {
    margin-right: 0;
    margin-left: 10px;
}

/* ===== 72. BUTTON VARIANTS ===== */

/* ----- 72.1 Primary Button ----- */
.btn-primary {
    background-color: #CCC;
    border-color: #CCC;
    color: #FFF;
}

/* ----- 72.2 Primary Button States ----- */
.btn-primary:hover,
.btn-primary:focus {
    background-color: #b9b9b9;
    border-color: #b9b9b9;
    color: #FFF;
}

/* ----- 72.3 Outline Primary Button ----- */
.btn-outline.btn-primary {
    color: #CCC;
    background-color: transparent;
    border-color: #CCC;
}

/* ----- 72.4 Outline Primary Button States ----- */
.btn-outline.btn-primary:hover,
.btn-outline.btn-primary:focus {
    color: #FFF;
    background-color: #CCC;
    border-color: #CCC;
}

/* ===== 73. CARD COMPONENTS ===== */

/* ----- 73.1 Base Card ----- */
.card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ----- 73.2 Card Header ----- */
.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ----- 73.3 Card Footer ----- */
.card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ----- 73.4 Card Body ----- */
.card-body {
    padding: 2rem;
    position: relative;
}

/* ===== 74. FORM ELEMENTS ===== */

/* ----- 74.1 Form Input Reset ----- */
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
textarea {
    -webkit-appearance: none;
    appearance: none;
}

/* ----- 74.2 Placeholder Text (WebKit) ----- */
.form-control::-webkit-input-placeholder,
input[type="text"]::-webkit-input-placeholder,
input[type="password"]::-webkit-input-placeholder,
input[type="datetime"]::-webkit-input-placeholder,
input[type="datetime-local"]::-webkit-input-placeholder,
input[type="date"]::-webkit-input-placeholder,
input[type="month"]::-webkit-input-placeholder,
input[type="time"]::-webkit-input-placeholder,
input[type="week"]::-webkit-input-placeholder,
input[type="number"]::-webkit-input-placeholder,
input[type="email"]::-webkit-input-placeholder,
input[type="url"]::-webkit-input-placeholder,
input[type="search"]::-webkit-input-placeholder,
input[type="tel"]::-webkit-input-placeholder,
input[type="color"]::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #bdbdbd;
}

/* ----- 74.3 Placeholder Text (Mozilla) ----- */
.form-control::-moz-placeholder,
input[type="text"]::-moz-placeholder,
input[type="password"]::-moz-placeholder,
input[type="datetime"]::-moz-placeholder,
input[type="datetime-local"]::-moz-placeholder,
input[type="date"]::-moz-placeholder,
input[type="month"]::-moz-placeholder,
input[type="time"]::-moz-placeholder,
input[type="week"]::-moz-placeholder,
input[type="number"]::-moz-placeholder,
input[type="email"]::-moz-placeholder,
input[type="url"]::-moz-placeholder,
input[type="search"]::-moz-placeholder,
input[type="tel"]::-moz-placeholder,
input[type="color"]::-moz-placeholder,
textarea::-moz-placeholder {
    color: #bdbdbd;
}

/* ----- 74.4 Placeholder Text (IE/Edge) ----- */
.form-control:-ms-input-placeholder,
input[type="text"]:-ms-input-placeholder,
input[type="password"]:-ms-input-placeholder,
input[type="datetime"]:-ms-input-placeholder,
input[type="datetime-local"]:-ms-input-placeholder,
input[type="email"]:-ms-input-placeholder,
input[type="url"]:-ms-input-placeholder,
input[type="search"]:-ms-input-placeholder,
input[type="tel"]:-ms-input-placeholder,
input[type="color"]:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #bdbdbd;
}

/* ----- 74.5 Search Input Styling ----- */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-ms-clear {
    margin-right: -7px !important;
}

/* ===== 75. TYPOGRAPHY ===== */

/* ----- 75.1 Base Headings ----- */
h1, h2, h3, h4, h5, h6 {
    color: #0088cc;
    font-weight: 200;
    letter-spacing: -0.05em;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ----- 75.2 Heading Level 1 ----- */
h1 {
    font-size: 2.6em;
    line-height: 44px;
    margin: 0 0 32px 0;
}

/* ----- 75.3 Heading Level 2 ----- */
h2 {
    font-size: 2.2em;
    font-weight: 300;
    line-height: 42px;
    margin: 0 0 32px 0;
}

/* ----- 75.4 Heading Level 3 ----- */
h3 {
    font-size: 1.8em;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 33px;
    text-transform: uppercase;
    color: #0088cc;
}

/* ----- 75.5 Heading Level 4 ----- */
h4 {
    font-size: 1.4em;
    font-weight: 600;
    line-height: 27px;
    margin: 0 0 14px 0;
    color: #0088cc;
}

/* ----- 75.6 Heading Level 5 ----- */
h5 {
    font-size: 1em;
    font-weight: 600;
    line-height: 18px;
    margin: 0 0 14px 0;
    text-transform: uppercase;
}

/* ----- 75.7 Heading Level 6 ----- */
h6 {
    color: #333;
    font-size: 1em;
    font-weight: 400;
    line-height: 18px;
    margin: 0 0 14px 0;
}

/* ===== 76. THEMED TYPOGRAPHY ===== */

/* ----- 76.1 Dark Theme Headings ----- */
h1.dark,
h2.dark,
h3.dark,
h4.dark,
h5.dark {
    color: #212529;
}

/* ----- 76.2 Light Theme Headings ----- */
h1.light,
h2.light,
h3.light,
h4.light,
h5.light,
h6.light {
    color: #FFF;
}

/* ----- 76.3 Text Shadow Headings ----- */
h1.text-shadow,
h2.text-shadow,
h3.text-shadow,
h4.text-shadow,
h5.text-shadow,
h6.text-shadow {
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

/* ===== 77. MODAL COMPONENTS (CONTINUED) ===== */

/* ----- 77.1 Modal Title ----- */
.modal-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ----- 77.2 Modal Open State ----- */
.modal-open {
    padding-right: 0 !important;
}

/* ===== 78. LOADING STATES ===== */

/* ----- 78.1 Loading Overlay Container ----- */
.loading-overlay-showing {
    overflow: hidden;
}

/* ----- 78.2 Active Loading Overlay ----- */
.loading-overlay-showing > .loading-overlay {
    opacity: 1;
    visibility: visible;
}

/* ----- 78.3 Loading Overlay Base ----- */
.loading-overlay {
    transition: visibility 0s ease-in-out 0.5s, opacity 0.5s ease-in-out;
    bottom: 0;
    left: 0;
    position: absolute;
    opacity: 0;
    right: 0;
    top: 0;
    visibility: hidden;
    background: #FFF !important;
}

/* ----- 78.4 Full Page Loading Overlay ----- */
body > .loading-overlay {
    position: fixed;
    z-index: 999999;
}

/* ===== 79. LOADING ANIMATIONS ===== */

/* ----- 79.1 Bounce Loader ----- */
.bounce-loader {
    transition: all 0.2s;
    margin: -9px 0 0 -35px;
    text-align: center;
    width: 70px;
    left: 50%;
    position: absolute;
    top: 50%;
    z-index: 10000;
}

/* ===== 80. SIDEBAR COMPONENTS ===== */

/* ----- 80.1 Fixed Sidebar Toggle ----- */
#sidebarToggleFixed {
    position: fixed !important;
    top: 245px !important;
    left: 5px !important;
    z-index: 1001 !important;
    width: 40px !important;
    height: 40px !important;
    transition: left 0.3s ease !important;
}

/* ===== 81. RESPONSIVE BEHAVIOR ===== */

/* ----- 81.1 Small Screens (max-width: 1699px) ----- */
@media (max-width: 1699px) {
    .sidebar-initially-hidden {
        transform: translateX(-100%);
    }
}

/* ----- 81.2 Large Screens (min-width: 1700px) ----- */
@media (min-width: 1700px) {
    .sidebar-initially-hidden {
        transform: translateX(0);
    }
}

/* ===== 82. ANTI-GLITCH STYLES ===== */

/* ----- 82.1 Loaded State ----- */
body.anti-glitch.loaded {
    opacity: 1;
    visibility: visible;
}

/* ----- 82.2 Loading Overlay (Initial State) ----- */
body.anti-glitch .loading-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* ----- 82.3 Loading Overlay (Loaded State) ----- */
body.anti-glitch.loaded .loading-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== 83. LAYOUT UTILITIES ===== */

/* ----- 83.1 Prevent Layout Shifts ----- */
.header-logo img {
    height: 58px;
    width: 120px;
}

/* ----- 83.2 Text Rendering ----- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== 84. BOUNCE LOADER ELEMENTS ===== */

/* ----- 84.1 Bounce Dots ----- */
.bounce-loader .bounce1,
.bounce-loader .bounce2,
.bounce-loader .bounce3 {
    animation: 1.4s ease-in-out 0s normal both infinite bouncedelay;
    background-color: #CCC;
    border-radius: 100%;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
    display: inline-block;
    height: 18px;
    width: 18px;
}

/* ----- 84.2 Bounce Animation Delays ----- */
.bounce-loader .bounce1 {
    animation-delay: -0.32s;
}

.bounce-loader .bounce2 {
    animation-delay: -0.16s;
}

/* ----- 84.3 Bounce Animation Keyframes ----- */
@keyframes bouncedelay {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ----- 84.4 Safari/iPhone Specific Fixes ----- */
html.safari.iphone .bounce-loader .bounce1,
html.safari.iphone .bounce-loader .bounce2,
html.safari.iphone .bounce-loader .bounce3 {
    animation: 1.4s ease-in-out infinite bouncedelay;
}

/* ===== 85. PERCENTAGE LOADER ===== */

/* ----- 85.1 Percentage Loader Container ----- */
.loading-overlay.loading-overlay-percentage {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- 85.2 Percentage Text ----- */
.loading-overlay.loading-overlay-percentage .page-loader-progress-wrapper {
    display: flex;
    font-size: 65.6px;
    font-size: 4.1rem;
    font-weight: bold;
    letter-spacing: -1.5px;
    color: #212121;
}

/* ----- 85.3 Percentage Loader Background Effect ----- */
.loading-overlay.loading-overlay-percentage.loading-overlay-percentage-effect-2 .loading-overlay-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 0px;
    background: #f4f4f4;
    z-index: 0;
    transition: ease width 300ms;
}

/* ----- 85.4 Percentage Loader Content Wrapper ----- */
.loading-overlay.loading-overlay-percentage.loading-overlay-percentage-effect-2 .page-loader-progress-wrapper {
    position: relative;
    z-index: 1;
}

/* ===== 86. UTILITY CLASSES ===== */

/* ----- 86.1 Text Utilities ----- */
.hide-text {
    display: block;
    text-indent: -9999px;
    width: 0;
    height: 0;
}

/* ----- 86.2 Fixed Width Utilities ----- */
.w-100 {
    width: 100% !important;
}

.w-400 {
    width: 400px !important;
}

.w-450 {
    width: 450px !important;
}

.w-500 {
    width: 500px !important;
}

/* ----- 86.3 Percentage Width Utilities ----- */
.w-25-percent {
    width: 25% !important;
}

.w-50-percent {
    width: 50% !important;
}

.w-75-percent {
    width: 75% !important;
}

.w-100-percent {
    width: 100% !important;
}

/* ===== 87. MAX-WIDTH UTILITIES ===== */

/* ----- 87.1 Small Max-Widths ----- */
.max-w-100 {
    max-width: 100px !important;
}

.max-w-200 {
    max-width: 200px !important;
}

.max-w-300 {
    max-width: 300px !important;
}

/* ----- 87.2 Medium Max-Widths ----- */
.max-w-400 {
    max-width: 400px !important;
}

.max-w-500 {
    max-width: 500px !important;
}

/* ----- 87.3 Large Max-Widths ----- */
.max-w-600 {
    max-width: 600px !important;
}

.max-w-700 {
    max-width: 700px !important;
}

.max-w-800 {
    max-width: 800px !important;
}

.max-w-900 {
    max-width: 900px !important;
}

/* ----- 87.4 Extra Large Max-Widths ----- */
.max-w-1000 {
    max-width: 1000px !important;
}

/* ===== 88. PERCENTAGE MAX-WIDTH UTILITIES ===== */

/* ----- 88.1 Small Percentage Max-Widths ----- */
.max-w-25-percent {
    max-width: 25% !important;
}

/* ----- 88.2 Medium Percentage Max-Widths ----- */
.max-w-50-percent {
    max-width: 50% !important;
}

/* ----- 88.3 Large Percentage Max-Widths ----- */
.max-w-75-percent {
    max-width: 75% !important;
}

.max-w-100-percent {
    max-width: 100% !important;
}

/* ===== 89. MIN-WIDTH UTILITIES ===== */

/* ----- 89.1 Small Min-Widths ----- */
.min-w-100 {
    min-width: 100px !important;
}

.min-w-200 {
    min-width: 200px !important;
}

/* ----- 89.2 Medium Min-Widths ----- */
.min-w-300 {
    min-width: 300px !important;
}

.min-w-400 {
    min-width: 400px !important;
}

/* ----- 89.3 Large Min-Widths ----- */
.min-w-500 {
    min-width: 500px !important;
}

/* ===== 90. PERCENTAGE MIN-WIDTH UTILITIES ===== */

/* ----- 90.1 Small Percentage Min-Widths ----- */
.min-w-25-percent {
    min-width: 25% !important;
}

/* ----- 90.2 Medium Percentage Min-Widths ----- */
.min-w-50-percent {
    min-width: 50% !important;
}

/* ----- 90.3 Large Percentage Min-Widths ----- */
.min-w-75-percent {
    min-width: 75% !important;
}

.min-w-100-percent {
    min-width: 100% !important;
}

/* ===== 91. RESPONSIVE UTILITIES (XL BREAKPOINT) ===== */

/* Media query for extra large screens (min-width: 1200px) */
@media (min-width: 1200px) {
    /* ----- 91.1 Text Alignment ----- */
    .text-xl-center {
        text-align: center !important;
    }

    .text-xl-left {
        text-align: left !important;
    }

    .text-xl-right {
        text-align: right !important;
    }

    /* ----- 91.2 Display Properties ----- */
    .d-xl-none {
        display: none !important;
    }
    
    .d-xl-block {
        display: block !important;
    }
    
    .d-xl-inline {
        display: inline !important;
    }
    
    .d-xl-inline-block {
        display: inline-block !important;
    }
    
    .d-xl-flex {
        display: flex !important;
    }
    
    .d-xl-inline-flex {
        display: inline-flex !important;
    }

    /* ----- 91.3 Grid Display ----- */
    .d-xl-grid {
        display: grid !important;
    }

    /* ===== 92. RESPONSIVE FLEXBOX ===== */

    /* ----- 92.1 Flex Direction ----- */
    .flex-xl-row {
        flex-direction: row !important;
    }

    .flex-xl-column {
        flex-direction: column !important;
    }

    .flex-xl-row-reverse {
        flex-direction: row-reverse !important;
    }

    .flex-xl-column-reverse {
        flex-direction: column-reverse !important;
    }

    /* ----- 92.2 Justify Content ----- */
    .justify-content-xl-start {
        justify-content: flex-start !important;
    }

    .justify-content-xl-end {
        justify-content: flex-end !important;
    }

    .justify-content-xl-center {
        justify-content: center !important;
    }

    .justify-content-xl-between {
        justify-content: space-between !important;
    }

    .justify-content-xl-around {
        justify-content: space-around !important;
    }

    .justify-content-xl-evenly {
        justify-content: space-evenly !important;
    }

    /* ----- 92.3 Align Items ----- */
    .align-items-xl-start {
        align-items: flex-start !important;
    }

    .align-items-xl-end {
        align-items: flex-end !important;
    }

    .align-items-xl-center {
        align-items: center !important;
    }

    .align-items-xl-baseline {
        align-items: baseline !important;
    }

    .align-items-xl-stretch {
        align-items: stretch !important;
    }

    /* ----- 92.4 Align Content ----- */
    .align-content-xl-start {
        align-content: flex-start !important;
    }

    .align-content-xl-end {
        align-content: flex-end !important;
    }

    .align-content-xl-center {
        align-content: center !important;
    }

    .align-content-xl-between {
        align-content: space-between !important;
    }

    .align-content-xl-around {
        align-content: space-around !important;
    }

    .align-content-xl-stretch {
        align-content: stretch !important;
    }

    /* ----- 92.5 Align Self ----- */
    .align-self-xl-auto {
        align-self: auto !important;
    }

    .align-self-xl-start {
        align-self: flex-start !important;
    }
    
    .align-self-xl-end {
        align-self: flex-end !important;
    }
    
    .align-self-xl-center {
        align-self: center !important;
    }
    
    .align-self-xl-baseline {
        align-self: baseline !important;
    }
    
    .align-self-xl-stretch {
        align-self: stretch !important;
    }

    /* ----- 92.6 Flex Wrap ----- */
    .flex-xl-wrap {
        flex-wrap: wrap !important;
    }
    
    .flex-xl-nowrap {
        flex-wrap: nowrap !important;
    }
    
    .flex-xl-wrap-reverse {
        flex-wrap: wrap-reverse !important;
    }
}

/* ===== 93. RESPONSIVE FLEXBOX UTILITY CLASSES ===== */

/* ----- 93.1 Flex Grow ----- */
.flex-grow-0 {
    flex-grow: 0 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

/* ----- 93.2 Flex Shrink ----- */
.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-shrink-1 {
    flex-shrink: 1 !important;
}

/* ----- 93.3 Flex Fill ----- */
.flex-fill {
    flex: 1 1 auto !important;
}

/* ===== 94. TYPOGRAPHY UTILITIES ===== */

/* ----- 94.1 Font Weight ----- */
.fw-bolder {
    font-weight: 800 !important;
}

/* ----- 94.2 Line Height ----- */
.lh-1 {
    line-height: 1 !important;
}

.lh-sm {
    line-height: 1.25 !important;
}

.lh-base {
    line-height: 1.5 !important;
}

.lh-lg {
    line-height: 2 !important;
}

/* ===== 95. VISUAL UTILITIES ===== */

/* ----- 95.1 Opacity ----- */
.opacity-0 {
    opacity: 0 !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-100 {
    opacity: 1 !important;
}

/* ----- 95.2 Visibility ----- */
.visible {
    visibility: visible !important;
}

.invisible {
    visibility: hidden !important;
}

/* ===== 96. BACKGROUND UTILITIES ===== */

/* ----- 96.1 Background Colors ----- */
.bg-transparent {
    background-color: transparent !important;
}

.bg-white {
    background-color: #fff !important;
}

/* ----- 96.2 Theme Colors ----- */
.bg-primary {
    background-color: #007bff !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

/* ----- 96.3 Neutral Colors ----- */
.bg-dark {
    background-color: #343a40 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* ===== 97. FLEXBOX UTILITIES ===== */

/* ----- 97.1 Display Flex ----- */
.d-flex {
    display: flex !important;
}

/* ----- 97.2 Flex Direction ----- */
.flex-row {
    flex-direction: row !important;
}

.flex-column {
    flex-direction: column !important;
}

/* ----- 97.3 Flex Wrap ----- */
.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.flex-wrap-reverse {
    flex-wrap: wrap-reverse !important;
}

/* ----- 97.4 Flex Fill ----- */
.flex-fill {
    flex: 1 1 auto !important;
}

/* ----- 97.5 Flex Grow ----- */
.flex-grow-0 {
    flex-grow: 0 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

/* ----- 97.6 Flex Shrink ----- */
.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-shrink-1 {
    flex-shrink: 1 !important;
}

/* ----- 97.7 Justify Content ----- */
.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

.justify-content-evenly {
    justify-content: space-evenly !important;
}

/* ----- 97.8 Align Items ----- */
.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-baseline {
    align-items: baseline !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

/* ===== 98. SPACING UTILITIES ===== */

/* ----- 98.1 Margin All Sides ----- */
.m-0 {
    margin: 0 !important;
}

/* ----- 98.2 Margin Bottom ----- */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* ----- 98.3 Margin Top ----- */
.mt-2 {
    margin-top: 0.5rem !important;
}

/* ----- 98.4 Margin Right ----- */
.mr-3 {
    margin-right: 1rem !important;
}

.mr-4 {
    margin-right: 1.5rem !important;
}

.mr-5 {
    margin-right: 3rem !important;
}

/* ----- 98.5 Margin Right Auto ----- */
.mr-auto {
    margin-right: auto !important;
}

/* ===== 99. MARGIN BOTTOM UTILITIES ===== */

/* ----- 99.1 Standard Margin Bottom ----- */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* ----- 99.2 Margin Bottom Auto ----- */
.mb-auto {
    margin-bottom: auto !important;
}

/* ===== 100. MARGIN LEFT UTILITIES ===== */

/* ----- 100.1 Standard Margin Left ----- */
.ml-0 {
    margin-left: 0 !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.ml-3 {
    margin-left: 1rem !important;
}

.ml-4 {
    margin-left: 1.5rem !important;
}

.ml-5 {
    margin-left: 3rem !important;
}

/* ----- 100.2 Margin Left Auto ----- */
.ml-auto {
    margin-left: auto !important;
}

/* ===== 101. PADDING UTILITIES ===== */

/* ----- 101.1 Standard Padding ----- */
.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

/* ===== 102. HORIZONTAL PADDING UTILITIES ===== */

/* ----- 102.1 Padding X-Axis ----- */
.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.px-1 {
    padding-right: 0.25rem !important;
    padding-left: 0.25rem !important;
}

.px-2 {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.px-3 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.px-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

/* ===== 103. VERTICAL PADDING UTILITIES ===== */

/* ----- 103.1 Padding Y-Axis ----- */
.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* ===== 104. INDIVIDUAL PADDING UTILITIES ===== */

/* ----- 104.1 Padding Top ----- */
.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: 0.25rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

/* ----- 104.2 Padding Bottom ----- */
.pb-4 {
    padding-bottom: 1.5rem !important;
}

/* ===== 105. DISPLAY UTILITIES ===== */

/* ----- 105.1 Display Types ----- */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

/* ===== 106. PAGE TRANSITIONS ===== */

/* ----- 106.1 Page Transition Base ----- */
body[data-plugin-page-transition] {
    transition: ease opacity 300ms;
}

/* ----- 106.2 Active Page Transition ----- */
body.page-transition-active {
    opacity: 0 !important;
}

/* ===== 107. PRODUCT VIEWER ===== */

/* ----- 107.1 Responsive Adjustments ----- */
@media (max-width: 1199px) {
    .cd-product-viewer-wrapper>div {
        width: 100% !important;
    }
}

/* ----- 107.2 Product Viewer Base ----- */
.cd-product-viewer-wrapper .product-viewer {
    position: relative;
    z-index: 1;
    display: inline-block;
    overflow: hidden;
}

/* ===== 108. POSITIONING UTILITIES ===== */

/* ----- 108.1 Position Types ----- */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

/* ===== 109. OVERFLOW UTILITIES ===== */

/* ----- 109.1 Overflow Types ----- */
.overflow-hidden {
    overflow: hidden !important;
}

.overflow-auto {
    overflow: auto !important;
}

/* ===== 110. TEXT UTILITIES ===== */

/* ----- 110.1 Text Alignment ----- */
.text-center {
    text-align: center !important;
    grid-area: 1 / 1 / 2 / 5; /* Specific grid positioning for this class */
}

.text-right {
    text-align: right !important;
}

.text-justify {
    text-align: justify !important;
}

/* ----- 110.2 Text Transformation ----- */
.text-lowercase {
    text-transform: lowercase !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

/* ----- 110.3 Font Weight ----- */
.font-weight-light {
    font-weight: 300 !important;
}

.font-weight-normal {
    font-weight: 400 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

/* ===== 111. TEXT DECORATION UTILITIES ===== */

/* ----- 111.1 Text Decoration Types ----- */
.text-decoration-none {
    text-decoration: none !important;
}

.text-decoration-underline {
    text-decoration: underline !important;
}

/* ===== 112. TEXT COLOR UTILITIES ===== */

/* ----- 112.1 Neutral Colors ----- */
.text-white {
    color: #fff !important;
}

.text-dark {
    color: #343a40 !important;
}

/* ----- 112.2 Theme Colors ----- */
.text-primary {
    color: #0088cc !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* ===== 113. BACKGROUND COLOR UTILITIES ===== */

/* ----- 113.1 Theme Backgrounds ----- */
.bg-primary {
    background-color: #007bff !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-dark {
    background-color: #343a40 !important;
}

/* ===== 114. BORDER UTILITIES ===== */

/* ----- 114.1 Border Base ----- */
.border {
    border: 1px solid #dee2e6 !important;
}

/* ----- 114.2 Border Sides ----- */
.border-top {
    border-top: 1px solid #dee2e6 !important;
}

.border-right {
    border-right: 1px solid #dee2e6 !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.border-left {
    border-left: 1px solid #dee2e6 !important;
}

/* ----- 114.3 Border Radius ----- */
.rounded {
    border-radius: 0.25rem !important;
}

/* ===== 115. COPY TO CLIPBOARD ===== */

/* ----- 115.1 Base Button ----- */
.copy-to-clipboard-wrapper .btn {
    position: relative;
}

/* ----- 115.2 Tooltip ----- */
.copy-to-clipboard-wrapper .btn:before {
    content: 'Copy to Clipboard';
    position: absolute;
    top: -41px;
    left: 50%;
    background: #212121;
    border-radius: 4px;
    transform: translate3d(-50%, 0, 0);
    opacity: 0;
    display: none;
    transition: ease opacity 300ms;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 12px;
    font-size: 0.75rem;
    z-index: 10;
}

/* ----- 115.3 Tooltip Arrow ----- */
.copy-to-clipboard-wrapper .btn:after {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 7px solid #212121;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    transform: translate3d(-50%, 0, 0);
    opacity: 0;
    display: none;
    transition: ease opacity 300ms;
}

/* ----- 115.4 Hover & Active States ----- */
.copy-to-clipboard-wrapper .btn:hover:before,
.copy-to-clipboard-wrapper .btn:hover:after,
.copy-to-clipboard-wrapper .btn.copied:before,
.copy-to-clipboard-wrapper .btn.copied:after {
    display: block;
    opacity: 1;
}

.copy-to-clipboard-wrapper .btn.copied:before {
    content: 'Copied!';
}

/* ===== 116. PARTICLE EFFECTS ===== */

/* ----- 116.1 Particle Wrapper ----- */
.particles-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.particles-wrapper div {
    height: 100%;
}

/* ----- 116.2 Base Particle ----- */
.particle {
    position: absolute;
}

/* ----- 116.3 Dot Pattern ----- */
.particle.particle-dots {
    -webkit-mask-image: url(../img/particle-dot.svg);
    mask-image: url(../img/particle-dot.svg);
    z-index: 0;
    -webkit-mask-size: 18px;
    mask-size: 18px;
}

/* ----- 116.4 Line Pattern ----- */
.particle.particle-repeating-lines {
    background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0) 0.8px, #0088cc 1.6px, #0088cc 3px, rgba(255, 255, 255, 0) 3.8px, rgba(255, 255, 255, 0) 10px);
}

/* ----- 116.5 Light Variant ----- */
.particle.particle-repeating-lines.bg-light {
    background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0) 0.8px, #FFF 1.6px, #FFF 3px, rgba(255, 255, 255, 0) 3.8px, rgba(255, 255, 255, 0) 10px) !important;
}

/* ----- 116.6 Dark Variant ----- */
.particle.particle-repeating-lines.bg-dark {
    background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0) 0.8px, #212529 1.6px, #212529 3px, rgba(255, 255, 255, 0) 3.8px, rgba(255, 255, 255, 0) 10px) !important;
}

/* ----- 116.7 SVG Patterns ----- */
.patterns svg {
    position: absolute;
}

/* ===== 117. PROGRESS INDICATORS ===== */

/* ----- 117.1 Reading Progress Bar ----- */
.progress-reading {
    z-index: 99999;
    height: 8px;
}

/* ===== 118. CONTENT SWITCHER ===== */

/* ----- 118.1 Wrapper ----- */
.content-switcher-wrapper {
    position: relative;
}

/* ----- 118.2 Base Styles ----- */
.content-switcher {
    transition: all 0.2s ease-in-out;
    opacity: 0;
    top: 0;
}

/* ----- 118.3 Active State ----- */
.content-switcher.active {
    position: absolute;
    opacity: 1;
}

/* ----- 118.4 Initialized State ----- */
.content-switcher.initialized {
    position: absolute;
}

/* ===== 119. POPUP MODALS ===== */

/* ----- 119.1 Base Popup ----- */
.popup-inline-content,
.mfp-content .ajax-container {
    background: none repeat scroll 0 0 #FFF;
    margin: 40px auto;
    max-width: 1170px;
    padding: 20px 30px;
    position: relative;
    text-align: left;
    display: none;
}

/* ----- 119.2 AJAX Container ----- */
.mfp-content .ajax-container {
    display: block;
}

/* ----- 119.3 Inline Content ----- */
.mfp-wrap .popup-inline-content {
    display: block;
}

/* ===== 120. DROPDOWN MENUS ===== */

/* ----- 120.1 Desktop Dropdowns ----- */
@media (min-width: 992px) {
    /* Show dropdown on hover */
    .dropdown:hover>.dropdown-menu {
        display: block !important;
    }

    .dropdown-menu {
        margin-top: 0 !important;
    }
}

/* ===== 121. BOXED LAYOUT ===== */

/* ----- 121.1 Sticky Navigation ----- */
html.boxed .nav-secondary.sticky-active {
    max-width: 1200px;
    left: auto !important;
}

/* ===== 122. SCROLL TO TOP BUTTON ===== */

/* ----- 122.1 Base Styles ----- */
html .scroll-to-top {
    transition: opacity 0.3s;
    background: #404040;
    border-radius: 4px 4px 0 0;
    bottom: 0;
    color: #FFF;
    display: block;
    height: 9px;
    opacity: 0;
    padding: 10px 10px 35px;
    position: fixed;
    right: 10px;
    text-align: center;
    text-decoration: none;
    min-width: 50px;
    z-index: 1040;
    font-size: 0.8em;
}

html .scroll-to-top:hover {
    opacity: 1;
}

html .scroll-to-top.visible {
    opacity: 0.75;
}

html .scroll-to-top span {
    display: inline-block;
    padding: 0 5px;
}
/* Lightbox scroll-to-top adjustment removed - plugin uninstalled */

@media (max-width: 991px) {
    html .scroll-to-top.hidden-mobile {
        display: none !important;
    }
}

/* Toggles */
.toggle {
    margin: 10px 0 20px;
    position: relative;
    clear: both;
}

.toggle .toggle {
    margin: 10px 0 0;
}

.toggle>input {
    cursor: pointer;
    filter: alpha(opacity=0);
    height: 45px;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.toggle>label,
.toggle>.toggle-title {
    transition: all .15s ease-out;
    background: #f7f7f7;
    border-left: 3px solid #CCC;
    border-radius: 5px;
    color: #CCC;
    display: block;
    min-height: 20px;
    padding: 12px 20px 12px 15px;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-decoration: none !important;
}

.toggle>label:-moz-selection,
.toggle>.toggle-title:-moz-selection {
    background: none;
}

.toggle>label i.fa-minus,
.toggle>.toggle-title i.fa-minus {
    display: none;
}

.toggle>label i.fa-plus,
.toggle>.toggle-title i.fa-plus {
    display: inline;
}

.toggle>label:before,
.toggle>.toggle-title:before {
    content: " ";
    position: absolute;
    top: calc(50% + 1px);
    right: 14px;
    border-color: #CCC;
    border-top: 1px solid;
    border-right: 1px solid;
    width: 8px;
    height: 8px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.3s, top 0.3s;
    transform: rotate(-45deg) translate3d(0, -50%, 0);
    transform-origin: 35%;
}

.toggle>label:hover,
.toggle>.toggle-title:hover {
    background: #f5f5f5;
}

.toggle>label+p,
.toggle>.toggle-title+p {
    color: #999;
    display: block;
    overflow: hidden;
    padding-left: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 25px;
}

.toggle>label i,
.toggle>.toggle-title i {
    font-size: 0.7em;
    margin-right: 8px;
    position: relative;
    top: -1px;
}

.toggle>.toggle-content {
    display: none;

    /* Explicitly set border colors to prevent inheriting from body text color */
    border-top-color: #343a40 !important;
    border-bottom-color: #343a40 !important;
    border-right-color: #343a40 !important;

    /* Keep left border color for styling */
}

.toggle>.toggle-content>p {
    margin-bottom: 0;
    padding: 10px 0;
}

.toggle.active i.fa-minus {
    display: inline;
}

.toggle.active i.fa-plus {
    display: none;
}

.toggle.active>label,
.toggle.active>.toggle-title {
    background: #f7f7f7;
    border-color: #CCC;
}

.toggle.active>label:before,
.toggle.active>.toggle-title:before {
    top: calc(50% - 8px);
    transform: rotate(135deg);
}

.toggle.active>p {
    white-space: normal;
}

.toggle>p.preview-active {
    height: auto;
    white-space: normal;
}

.toggle.toggle-sm .toggle>label,
.toggle.toggle-sm .toggle>.toggle-title {
    font-size: 0.9em;
    padding: 6px 20px 6px 10px;
}

.toggle.toggle-sm .toggle>.toggle-content>p {
    font-size: 0.9em;
}

.toggle.toggle-lg .toggle>label,
.toggle.toggle-lg .toggle>.toggle-title {
    font-size: 1.1em;
    padding: 16px 20px 16px 20px;
}

.toggle.toggle-lg .toggle>.toggle-content>p {
    font-size: 1.1em;
}

/* Small */
small,
.small {
    font-size: 70%;
}

/* ===== 123. TYPOGRAPHY ===== */

/* ----- 123.1 Base Paragraph ----- */
p {
    color: #fff;
    line-height: 26px;
    margin: 0 0 20px;
}

/* ----- 123.2 Featured Text ----- */
p.featured {
    font-size: 1.6em;
    line-height: 1.5em;
}

/* ----- 123.3 Lead Paragraph ----- */
p.lead {
    line-height: 28.8px;
    line-height: 1.8rem;
}

.lead {
    letter-spacing: -.05em;
    font-size: 19.2px;
    font-size: 1.2rem;
}

/* ----- 123.4 Alternative Font Styling ----- */
p .alternative-font {
    display: inline-block;
    margin-top: -15px;
    position: relative;
    top: 3px;
    margin-bottom: -6px;
}

/* ===== 124. LINK STYLES ===== */

/* ----- 124.1 Base Links ----- */
a,
a:hover,
a:focus {
    color: #0088cc;
}

/* ===== SEARCH INPUT STYLING ===== */
#search-input {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 15px;
    font-size: 16px;
    color: #ffffff;
    background-color: rgba(42, 47, 52, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.5);
    border-color: var(--primary-color);
}

#search-input::placeholder {
    color: var(--muted-text);
    opacity: 0.7;
}

/* =========== End framework.ui.css =========== */