/* ===============================================
   Elder Spores Online - Optimized Main Stylesheet
   Version: 2.0 - Modular Architecture
   Last Updated: September 20, 2025
   =============================================== */

/* ===============================================
   TABLE OF CONTENTS
   ===============================================
   1. Root Variables & Reset
   2. Base Typography & Layout
   3. Main Layout Components
   4. Navigation & Headers
   5. Build Sheet Components
   6. Build Panel Sections
   7. Gear & Slot Systems
   8. Skills & Champion Points
   9. Stats Display Systems
   10. Form Controls & Inputs
   11. Modal & Overlay Systems
   12. Skill Selector Components
   13. Chatbot Interface
   14. Utility Classes
   15. Animations
   16. Media Queries
   =============================================== */

/* ===============================================
   1. ROOT VARIABLES & RESET
   =============================================== */
:root {
    /* Color Palette */
    --color-primary: #ffd700;
    --color-secondary: #4a3728;
    --color-background: #000;
    --color-panel: #333;
    --color-text: #fff;
    --color-text-beige: #afa186;
    --color-success: #00ff00;
    --color-error: #ff3333;
    --color-health: #ff3333;
    --color-stamina: #33cc33;
    --color-magicka: #3333ff;
    
    /* Class Colors */
    --class-arcanist: #32cd32;
    --class-dragonknight: #ff8c00;
    --class-necromancer: #ba36fc;
    --class-nightblade: #dc143c;
    --class-sorcerer: #3e5eff;
    --class-templar: #ffd700;
    --class-warden: #14efff;
    
    /* Champion Point Colors */
    --cp-warfare: #00bfff;
    --cp-fitness: #ff4500;
    --cp-craft: #32cd32;
    
    /* Spacing */
    --spacing-xs: 0.25%;
    --spacing-sm: 0.5%;
    --spacing-md: 1%;
    --spacing-lg: 2%;
    --spacing-xl: 3%;
    
    /* Shadows */
    --shadow-sm: 2px 2px 4px rgba(0,0,0,0.5);
    --shadow-md: 3px 3px 6px rgba(0,0,0,0.5);
    --shadow-lg: 0 5px 15px rgba(0,0,0,0.7);
    
    /* Text Shadows */
    --text-shadow-standard: -2px -2px 3px #000, 2px -2px 3px #000, -2px 2px 3px #000, 2px 2px 3px #000;
    --text-shadow-heavy: -2px -2px 0 #032d08, 2px -2px 0 #032d08, -2px 2px 0 #032d08, 2px 2px 0 #032d08;
    
    /* Borders */
    --border-standard: 2px solid var(--color-secondary);
    --border-thick: 4px solid #0c2002;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.7s ease;
}



/* ===============================================
   2. BASE TYPOGRAPHY & LAYOUT
   =============================================== */
* {
    box-sizing: border-box;
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overflow-y: scroll; /* Ensure scrolling is enabled */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('/graphics/ElderSporesBackgroundTile.png');
    background-size: cover;
    background-attachment: fixed;
    color: var(--color-text);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

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

/* Hide scrollbars consistently */
.scrollbar-hidden {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

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

/* ===============================================
   3. MAIN LAYOUT COMPONENTS
   =============================================== */
.top-panel {
    position: absolute;
    top: 0;
    width: 100%;
    height: 15%;
    /* background: linear-gradient(to right, #000 25%, #4a3728); */
    background: linear-gradient(to right, var(--color-background) 25%, var(--color-secondary));
    box-sizing: border-box;
    z-index: 10000;
}

.top-panel img {
    position: absolute;
    top: 1%;
    left: 1%;
    height: 100%;
    width: auto;
    display: block;
    padding: 0.2%;
    box-sizing: border-box;
}

/* Navigation button container */
.nav-container {
    position: absolute;
    top: 15%;
    left: 14%;
    right: 14%;
    height: 30%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3.5%;
}

.nav-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 8%;
    min-width: 15.1%;
    white-space: nowrap;
    background-color: var(--color-panel);
    color: var(--color-text);
    font-size: clamp(1.9vb, 1.5rem, 1.9vb);
    text-decoration: none;
    border-radius: 20px;
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 1);
    box-shadow:
        0 0 8px rgba(0, 0, 0, .3),
        0 2px 4px rgba(0, 0, 0, .6),
        0 2px 12px rgba(0, 0, 0, 0.6);
}

.top-panel a.active {
    background-color: var(--color-primary);
    color: var(--color-background);
    font-weight: bold;
    text-shadow: none
}

.top-panel .logo-link {
    position: absolute;
    top: 0%;
    left: 1%;
    width: auto;
    height: 100%;
    display: block;
    background-color: #42914d00;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.logo-link img {
    position: absolute;
    height: 100%;
    width: auto;
    display: block
}

/* Clickable NAV PANEL hover effects */

.nav-link {
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease;
}

.nav-link:hover {
    transform: scale(1.15);
}

/* Header Icons Container (Mod & Notifications) */
.header-icons-container {
    position: absolute;
    bottom: 15%;
    right: 7%; /* Approximate position left of profile button */
    height: 35%;
    display: flex;
    align-items: center;
    gap: 2%;
    z-index: 100;
}

.header-icon-btn {
    height: 100%;
    width: auto;
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn:hover {
    transform: scale(1.25);
}

.header-icon-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -10%;
    right: -5%;
    background: #ff3333;
    border: 2px solid #000;
    color: #fff;
    font-size: clamp(1.2vb, 0.75rem, 1.2vb);
    font-weight: bold;
    padding-bottom: 3px;
    padding-right: 1px;
    border-radius: 50%;
    height: 25px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.8);
    z-index: 10;
}

/* User Profile Secific Styling */
.user-profile-btn {
    position: absolute;
    top: 15%;
    right: 1.1%;
    height: 70%;
    width: auto;
    aspect-ratio: 1/1;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #0c2002;
    box-shadow: 0 0 10px #1c4905;
    transition: all 0.2s ease;
}

.user-profile-btn:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.user-profile-btn .profile-btn-image {
    width: 105%;
    height: 105%;
    left: -2.5%;
    top: -2.5%;
}

.nav-legal {
    display: flex;
    width: 70%;
    overflow: hidden;
    position: absolute;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    top: 59%;
    left: 16.5%;
    background: transparent;
    border: none;
    padding: 10px 0;
}

.nav-legal a {
    color: var(--color-primary);
    font-size: clamp(2vb, 1.5rem, 2vb);
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap;
}

.nav-legal a:hover {
    text-decoration: underline;
}

/* Scrolling Text Bar */
.scrolling-text-container {
    width: 67%;
    overflow: hidden;
    position: absolute;
    top: 55%;
    left: 16.5%;
    background: transparent;
    border: none;
    padding: 10px 0;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 45s linear infinite;
    color: #ffd700;
    font-size: clamp(3vb, 2rem, 3vb);
    font-weight: bold;
    text-shadow: var(--text-shadow-standard);
    background: transparent;
    border: none;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.main-content {
    margin-left: 15%;
    padding: 20px;
    scrollbar-width: none;
}

.ad-space-left-container {
    position: absolute;
    left: 1%;
    top: 17%;
    width: 14.5%;
    height: 81%;
    /* border: 3px solid #ff0000; */
    /* background: #000000ac; */
    cursor: pointer;
    z-index: 1100;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 2px;
}

.ad-space-left-container.production {
    border: none;
    cursor: default;
}

.stream-team-logo img {
    position: flex;
    height: auto;
    width: 98%;
    display: block;
    margin: 1%;
    margin-top: -3.5%;
    /* box-shadow: var(--shadow-md);*/
}
.sub-panel-link {
    text-decoration: none;
    display: block;
}

.sub-panel-link:hover .sub-panel {
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.subscribe-panel img {
    position: flex;
    height: auto;
    width: 98%;
    display: block;
    margin: 1%;
    margin-top: 2%;
    /* box-shadow: var(--shadow-md);*/
    transition: opacity 0.2s ease;
}
.stream-team-ad1 img {  /* ESO Stream Team Ad 1 : Crown Showcase link handler */
    position: flex;
    height: auto;
    width: 98%;
    display: block;
    margin: 1%;
    margin-top: 2%;
    /* margin-top: 3%; */
    /* box-shadow: var(--shadow-md); */
}
.stream-team-ad2 img {
    position: flex;
    height: auto;
    width: 98%;
    display: block;
    margin: 1%;
    margin-top: 2%;
    /* box-shadow: var(--shadow-md);*/
}
.elder-spores-merch img {
    position: flex;
    height: auto;
    width: 98%;
    display: block;
    margin: 1%;
    margin-top: 2%;
    /* box-shadow: var(--shadow-md);*/
}
.twitch-and-kick img {
    position: flex;
    height: auto;
    width: 98%;
    display: block;
    margin: 1%;
    margin-top: 2%;
    /* box-shadow: var(--shadow-md);*/
}
.donate-paypal img {
    position: flex;
    height: auto;
    width: 98%;
    display: block;
    margin: 1%;
    margin-top: 2%;
    /* box-shadow: var(--shadow-md);*/
}

/* Clickable panel hover effects */
#sub-panel,
#stream-team-logo,
#stream-team-ad1,
#stream-team-ad2,
#elder-spores-merch,
#twitch-and-kick,
#donate-paypal {
    transition: transform 0.2s ease;
}
/* Greyed out until hover */
#sub-panel img,
#stream-team-logo img,
#stream-team-ad1 img,
#stream-team-ad2 img,
#elder-spores-merch img,
#twitch-and-kick img,
#donate-paypal img {
    filter: opacity(90%) grayscale(90%) brightness(1);
    transition: filter 0.3s ease, transform 0.2s ease;
}

#sub-panel:hover,
#stream-team-logo:hover,
#stream-team-ad1:hover,
#stream-team-ad2:hover,
#elder-spores-merch:hover,
#twitch-and-kick:hover,
#donate-paypal:hover {
    transform: scale(1.1);
}
#sub-panel:hover img,
#stream-team-logo:hover img,
#stream-team-ad1:hover img,
#stream-team-ad2:hover img,
#elder-spores-merch:hover img,
#twitch-and-kick:hover img,
#donate-paypal:hover img {
    filter: opacity(100%) grayscale(0%) brightness(1);
}

/* ===============================================
   4. BUILD SHEET COMPONENTS
   =============================================== */
/* Base .build-sheet positioning moved to editor-layout.css (.editor-mode prefix) */

.build-sheet h1 {
    margin-bottom: 2%;
    margin-left: 5%;
    color: var(--color-text);
    font-size: clamp(1rem, 1vb, 1rem);
    text-align: center;
}

.build-sheet h2 {
    color: var(--color-text);
    font-size: clamp(2rem, 2vb, 2rem);
    text-align: center;
}


/* Tab System */
.build-sheet-tabs {
    position: absolute;
    display: flex;
    height: 10%;
    width: 36%;
    left: 28%;
    margin-top: 4%;
    gap: 4%;
    padding: 1% 0%;
    justify-content: center;
    z-index: 10;
}

.build-sheet-tab {
    width: 31%;
    height: 100%;
    background-color: var(--color-primary);
    box-shadow: 0 0 3px #a3a3a3;
    color: var(--color-background);
    font-size: clamp(1.5vb, 2rem, 1.5vb);
    font-weight: bold;
    text-align: center;
    padding: 2%;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.build-sheet-tab.active {
    background-color: var(--color-success);
    color: var(--color-background);
}

.build-sheet-tab[data-tab="ap"] {
    position: flex;
}

.build-sheet-tab[data-tab="cp"] {
    position: flex;
    display: flex;
    align-items: center;
}

.build-sheet-tab[data-tab="stats"] {
    position: flex;
    top: 0;
    right: -6%;
    width: 35%;
}

.build-sheet-tab:hover {
    box-shadow: 0 0 10px var(--color-primary);
    border: solid 2px #000;
    transform: scale(1.15);
}
.build-sheet-tab.active:hover {
    box-shadow: 0 0 10px var(--color-success);
    border: solid 2px #000;
    transform: scale(1.15);
}

/* ===============================================
   5. BUILD PANELS
   =============================================== */
/* Panel positioning (.build-left, .build-center, .build-right, .build-bottom) 
   moved to editor-layout.css (.editor-mode prefix) */

/* Tab Content Panels */
.build-left-ap,
.build-left-cp,
.build-left-stats,
.build-center-ap,
.build-center-cp,
.build-center-stats {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.build-left-ap.active,
.build-left-cp.active,
.build-left-stats.active,
.build-center-ap.active,
.build-center-cp.active,
.build-center-stats.active {
    display: block;
}

.build-left-stats.active {
    display: block;
}

/* Background Images */
.build-center-ap {
    background-image: url('/graphics/background-ap.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#werewolf-claws-overlay {
    position: absolute;
    top: -95%;
    left: 50%;
    width: 50%;
    height: auto;
    pointer-events: none;
    opacity: 0;
    z-index: 10;

}
#vampire-blood-overlay {
    position: absolute;
    top: -135%;
    left: 50%;
    width: 50%;
    height: auto;
    pointer-events: none;
    opacity: 0;

}

/* Hide curse overlays in BUILD EDITOR center panels */
body:has(.build-sheet-tab[data-tab="stats"].active) #werewolf-claws-overlay,
body:has(.build-sheet-tab[data-tab="stats"].active) #vampire-blood-overlay,
body:has(.build-sheet-tab[data-tab="cp"].active) #werewolf-claws-overlay,
body:has(.build-sheet-tab[data-tab="cp"].active) #vampire-blood-overlay,
body:has(.build-sheet-tab[data-tab="ap"].active) #werewolf-claws-overlay,
body:has(.build-sheet-tab[data-tab="ap"].active) #vampire-blood-overlay {
    opacity: 0 !important;
}

.build-center-cp {
    background-image: url('/graphics/background-cp.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.build-center-stats {
    background-image: url('/graphics/background-stats.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===============================================
   6. LABELS & TEXT ELEMENTS
   =============================================== */
.label-standard {
    position: absolute;
    color: var(--color-primary);
    font-size: clamp(2vb, 2rem, 2vb);
    font-weight: bold;
    text-shadow: var(--text-shadow-standard);
    width: auto;
}

.build-left-ap-label {
    position: absolute;
    top: 1%;
    left: 4.5%;
    width: auto;
    text-align: left;
}

.build-left-ac-label {
    position: absolute;
    top: 46.7%;
    left: 4.5%;
    text-align: left;
}

.build-left-we-label {
    position: absolute;
    top: 64.5%;
    left: 4.5%;
    text-align: left;
}

.build-left-stats-label {
    position: absolute;
    top: -2%;
    left: 0;
    width: 100%;
    height: 5%;
    margin-bottom: 2%;
    color: var(--color-text);
    font-size: clamp(2.5vb, 2.5rem, 2.5vb);
    font-weight: bold;
    text-align: center;
    text-shadow: var(--text-shadow-standard);
}
/* Buff List Styling */
.build-left-stats-list {
    position: absolute;
    top: 7%;
    width: 96%;
    height: 90%;
    overflow-y: auto;
    padding: 1rem;
}

.buff-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.buff-list li {
    font-size: 17px; 
    padding-bottom: 2.5%;
}

.buff-status {
    font-weight: bold;
}

.buff-status.yes {
    color: #00ff00; /* Green */
}

.buff-status.no {
    color: #ff0000; /* Red */
}
/* ===============================================
   7. GEAR SLOT SYSTEM
   =============================================== */
.gear-slot,
.weapon-slot {
    position: absolute;
    width: 22%;
    aspect-ratio: 1;
    background-size: cover;
    border-radius: 5px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: clamp(.75rem, 1.5vb, .75rem);
    text-align: center;
    justify-content: center;
    transition: var(--transition-fast); 
}
.build-left-ap img {
    position: absolute;
    width: 40%;
    height: auto;
    top: 15.5%;
    left: 30%;
    border-radius: 10%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* Armor Slots */
.slot-head {
    left: 40%;
    top: 4.5%;
    background-image: url('/graphics/Icon-Head.jpg');
}

.slot-shoulder {
    left: 7%;
    top: 15.75%;
    background-image: url('/graphics/Icon-Shoulder.jpg');
}

.slot-hands {
    left: 7%;
    top: 27.5%;
    background-image: url('/graphics/Icon-Hands.jpg');
}

.slot-legs {
    left: 7%;
    top: 39%;
    background-image: url('/graphics/Icon-Legs.jpg');
}

.slot-chest {
    right: 7%;
    top: 15.75%;
    background-image: url('/graphics/Icon-Chest.jpg');
}

.slot-waist {
    right: 7%;
    top: 27.5%;
    background-image: url('/graphics/Icon-Waist.jpg');
}

.slot-feet {
    right: 7%;
    top: 39%;
    background-image: url('/graphics/Icon-Feet.jpg');
}

/* Jewelry Slots */
.slot-necklace {
    left: 14%;
    top: 57.2%;
    background-image: url('/graphics/Icon-Necklace.jpg');
}

.slot-ring1,
.slot-ring2 {
    top: 57.2%;
    background-image: url('/graphics/Icon-Ring.jpg');
}

.slot-ring1 {
    left: 38.6%;
}

.slot-ring2 {
    right: 14%;
}

/* Weapon Slots */

.slot-frontbar-primary,
.slot-backbar-primary {
    left: 11.5%;
    background-image: url('/graphics/Icon-Primary.jpg');
}

.slot-frontbar-offhand,
.slot-backbar-offhand {
    left: 35.7%;
    background-image: url('/graphics/Icon-Secondary.jpg');
}

.slot-frontbar-poison,
.slot-backbar-poison {
    right: 12%;
    background-image: url('/graphics/Icon-Poison.jpg');
}

.slot-frontbar-primary,
.slot-frontbar-offhand,
.slot-frontbar-poison {
    top: 75.5%;
}

.slot-backbar-primary,
.slot-backbar-offhand,
.slot-backbar-poison {
    top: 87.5%;
}

.gear-slot:hover,
.weapon-slot:hover {
    scale: 1.15; 
    box-shadow: 
        0 0 3px var(--color-primary),
        0 0 7px var(--color-primary),
        0 0 9px var(--color-primary);
}

/* ===============================================
   8. CHAMPION POINTS SYSTEM
   =============================================== */
.cp-circle-slot {
    position: absolute;
    left: 7%;
    width: 10%;
    aspect-ratio: 1;
    background-size: cover;
    background-color: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cp-text-slot {
    position: absolute;
    left: 23%;
    width: 75%;
    aspect-ratio: 8.5;
    font-size: clamp(1.75vb, 1.75rem, 1.75vb);
    text-align: left;
    justify-content: center;
    text-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

/* Warfare Slots */
.slot-warfare-circle1,
.slot-warfare-circle2,
.slot-warfare-circle3,
.slot-warfare-circle4 {
    background-image: url('/graphics/cp-warfare-icon.png');
}

.slot-warfare-slotted1,
.slot-warfare-slotted2,
.slot-warfare-slotted3,
.slot-warfare-slotted4 {
    color: var(--cp-warfare);
}

/* Fitness Slots */
.slot-fitness-circle1,
.slot-fitness-circle2,
.slot-fitness-circle3,
.slot-fitness-circle4 {
    background-image: url('/graphics/cp-fitness-icon.png');
}

.slot-fitness-slotted1,
.slot-fitness-slotted2,
.slot-fitness-slotted3,
.slot-fitness-slotted4 {
    color: var(--cp-fitness);
}

/* Craft Slots */
.slot-craft-circle1,
.slot-craft-circle2,
.slot-craft-circle3,
.slot-craft-circle4 {
    background-image: url('/graphics/cp-craft-icon.png');
}

.slot-craft-slotted1,
.slot-craft-slotted2,
.slot-craft-slotted3,
.slot-craft-slotted4 {
    color: var(--cp-craft);
}

/* Position Adjustments */
.slot-warfare-circle1,
.slot-warfare-slotted1 { top: 4%; }
.slot-warfare-slotted1 { top: 4.5%; }

.slot-warfare-circle2,
.slot-warfare-slotted2 { top: 11%; }
.slot-warfare-slotted2 { top: 11.5%; }

.slot-warfare-circle3,
.slot-warfare-slotted3 { top: 18%; }
.slot-warfare-slotted3 { top: 18.5%; }

.slot-warfare-circle4,
.slot-warfare-slotted4 { top: 25%; }
.slot-warfare-slotted4 { top: 25.5%; }

.slot-fitness-circle1 { top: 36.5%; }
.slot-fitness-slotted1 { top: 37%; }

.slot-fitness-circle2 { top: 43.5%; }
.slot-fitness-slotted2 { top: 44%; }

.slot-fitness-circle3 { top: 50.5%; }
.slot-fitness-slotted3 { top: 51%; }

.slot-fitness-circle4 { top: 57.5%; }
.slot-fitness-slotted4 { top: 58%; }

.slot-craft-circle1 { top: 69%; }
.slot-craft-slotted1 { top: 69.5%; }

.slot-craft-circle2 { top: 76%; }
.slot-craft-slotted2 { top: 76.5%; }

.slot-craft-circle3 { top: 83%; }
.slot-craft-slotted3 { top: 83.5%; }

.slot-craft-circle4 { top: 90%; }
.slot-craft-slotted4 { top: 90.5%; }

/* CP Section Styling */
.build-left-cp .cp-section {
    margin-bottom: 5%;
    font-size: clamp(2vb, 2rem, 2vb);
}

.build-left-cp .cp-section h1 {
    margin: 5px 0;
    font-size: clamp(1rem, 1.5vb, 1rem);
    text-align: left;
    text-shadow: 1px 1px 2px var(--color-background);
}

.build-left-cp .cp-section ul {
    padding: 5%;
    margin: 0;
    list-style: none;
    font-size: clamp(1.75vb, 1.75rem, 1.75vb);
}

.build-left-cp .cp-section li {
    display: block;
    align-items: center;
    margin-bottom: 5px;
    position: fixed;
    font-size: clamp(1rem, 1.2vb, 0.8rem);
    text-shadow: 1px 1px 2px var(--color-background);
}

.build-left-cp .cp-section .circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5%;
    border-radius: 50%;
    box-shadow: none;
}

/* CP Color Theming */
.build-left-cp .warfare h1,
.build-left-cp .warfare li {
    color: var(--cp-warfare);
}

.build-left-cp .warfare .circle {
    background-color: var(--cp-warfare);
}

.build-left-cp .fitness h1,
.build-left-cp .fitness li {
    color: var(--cp-fitness);
}

.build-left-cp .fitness .circle {
    background-color: var(--cp-fitness);
}

.build-left-cp .craft h1,
.build-left-cp .craft li {
    color: var(--cp-craft);
}

.build-left-cp .craft .circle {
    background-color: var(--cp-craft);
}

/* == Hover effects == */
.cp-text-slot:hover {
    scale: 1.075; 
}
.welcome-container {
    position: absolute;
    bottom: 2%;
    left: 16.4%;
    width: 52%;
    height: 81%;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.75);
    border: 4px solid #0c2002;
    border-radius: 30px;
    padding: 1%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 10px rgba(0, 0, 0, 0.9);
    /* background-image: url('/graphics/Now Loading.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; */
    
}
.welcome-header {
    position: relative;
    top: 2%;
    gap: 0;
}
.welcome-header h1 {
    color: var(--color-primary);
    font-size: 2.7rem;
    margin-top: 0;
    text-align: center;
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 15px rgba(0, 0, 0, 0.9);
}
.welcome-header p {
    color: var(--color-text-beige);
    width: 84%;
    margin-left: 8%;
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 15px rgba(0, 0, 0, 0.9);
}
.welcome-container-main {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
}
.welcome-left {
    position: relative;
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-sizing: border-box;
    align-content: center;
    justify-content: center;
    padding-left: 3%;
}

.welcome-image {
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 15px rgba(0, 0, 0, 0.9);
}
.welcome-image img {
    width:100%;
    aspect-ratio: 1;
    height: auto;
}
.welcome-right {
    position: relative;
    padding: 1%;
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-sizing: border-box;
}
.welcome-message h1 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-top: 13%;
    margin-left: 10%;
    text-align: left;
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 15px rgba(0, 0, 0, 0.9);
}
.welcome-message p {
    color: var(--color-text-beige);
    margin-left: 15%;
    font-size: 1.2rem;
    text-align: left;
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 15px rgba(0, 0, 0, 0.9);
}


/* ===============================================
   9 a. BUILD MANAGEMENT BUTTONS
   =============================================== */
.build-management-buttons {
    position: absolute;
    display: flex;
    height:auto;
    width: 100%;
    left: 0;
    margin-top: 2.5%;
    gap: 5%;
    padding: 1% 0%;
    justify-content: center;
    background: transparent;
}

.build-btn {
    padding: 1% 6%;
    border-radius: 20px;
    background: #010;
    color: var(--color-text);
    font-size: clamp(2vb, 2rem, 2vb);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 6px #ffd700;
}

.build-btn:hover {
    background: var(--color-primary);
    color: var(--color-background) ;
    font-weight: bold;
    text-shadow: var(--shadow-sm);
    box-shadow: 0 0 15px var(--color-primary);
    scale: 1.1;
}

.build-btn-lock {
    padding: 6px 10px;
    font-size: clamp(2vb, 2rem, 2vb);
}

.build-btn-lock.locked {
    color: #ff2e2e;
    border-color: #ca0404;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}
.build-btn-lock.locked:hover {
    background: rgba(255, 0, 0, 0.2);
}

/* Disabled state for Save/Load buttons when not logged in */
.build-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: 0 0 3px #666;
}

.build-btn:disabled:hover {
    background: #010;
    color: var(--color-text);
    font-weight: normal;
    text-shadow: none;
    box-shadow: 0 0 3px #666;
    scale: 1;
}

/* ===============================================
   10. FORM CONTROLS & INPUTS
   =============================================== */
.build-right select {
    width: 89.5%;
    height: 6%;
    margin-bottom: 2%;
    margin-left: 2%;
    padding: 1%;
    background: #010;
    color: var(--color-text);
    border: 1px solid var(--color-secondary);
    border-radius: 10px;
    box-shadow: 0 0 3px #ffd700;
    font-size: clamp(2vb, 2rem, 2vb);
    box-sizing: border-box;
    cursor: pointer;
}

.build-right option {
    background: var(--color-panel);
    color: var(--color-text);
}

.dropdown-standard {
    position: absolute;
    right: 0;
    width: 95%;
    height: 8%;
    padding: 2% 3%;
    cursor: pointer;
}

.build-right-race {
    position: absolute;
    top: 21%;
}

.build-right-class {
    position: absolute;
    top: 21.35%;
}

.build-right-curse {
    position: absolute;
    top: 34%;
}

.mundus-stone {
    position: absolute;
    top: 48.55%;
}

.primary-content {
    position: absolute;
    top: 63.1%;
}

.build-right-level {
    position: absolute;
    top: 50%;
}

.build-right-cplevel {
    position: absolute;
    top: 50.8%;
}

/* Custom Dropdown System (Mundus with Tooltips) */
.custom-dropdown {
    width: 96%;
    height: 6%;
    margin-bottom: 2%;
    margin-left: 2%;
    position: relative;
    box-sizing: border-box;
}

.custom-dropdown-selected {
    width: 100%;
    height: 100%;
    padding: 0 3%;
    background: #010;
    color: var(--color-text);
    border: 1px solid var(--color-secondary);
    border-radius: 10px;
    box-shadow: 0 0 3px #ffd700;
    font-size: clamp(2vb, 2rem, 2vb);
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-dropdown-selected:focus {
    outline: 1px solid var(--color-secondary);
}

.custom-dropdown-arrow {
    font-size: 0.7em;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-options {
    position: fixed;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--color-panel);
    border-top: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-options {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

.custom-dropdown.open .custom-dropdown-options::-webkit-scrollbar {
    display: none;  /* Chrome/Safari/Opera */
}

.custom-dropdown-option {
    padding: 4px 12px;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.15s ease;
    font-size: clamp(2vb, 2rem, 2vb);
}

.custom-dropdown-option:hover {
    background: #0078d7;
}

.custom-dropdown-option.selected {
    background: #0078d7;
}

.custom-dropdown-option[data-value=""] {
    color: #888;
    font-style: italic;
}

/* Toggle Switch */
.toggle-container {
    position: absolute;
    top: 36.15%;
    right: 7%;
    width: 86%;
    height: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.toggle-container label:not(.slider) {
    margin-right: 0;
    color: #000000;
    font-size: clamp(1.65vb, 1.65rem, 1.65vb);
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 6;
}

/* Custom Dropdown Disabled State */
.custom-dropdown.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.custom-dropdown.disabled .custom-dropdown-selected {
    cursor: not-allowed;
    background: rgba(40, 40, 40, 0.8);
}

/* These dropdowns open upward - swap border from bottom to top */
.build-right-level .custom-dropdown-options,
.build-right-cplevel .custom-dropdown-options,
.primary-content .custom-dropdown-options,
.build-right-role .custom-dropdown-options {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-container.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.toggle-container.disabled label {
    color: #66666600;
    cursor: not-allowed;
}

/* Subclassing Toggle Slider */
.subclass-slider {
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 0;
    right: 0;
    -webkit-appearance: none;
    appearance: none;
    background: #999;
    border-radius: 34px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.3s ease;
    margin: 0;
    padding: 0;
}

.subclass-slider::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
    border-radius: 34px;
}

.subclass-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 100%;
    aspect-ratio: 1/1;
    width: auto;
    background-color: rgb(192, 38, 38);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease;
 
}

.subclass-slider::-moz-range-track {
    height: 100%;
    background: transparent;
    border-radius: 34px;
}

.subclass-slider::-moz-range-thumb {
    height: 100%;
    aspect-ratio: 1/1;
    width: auto;
    background-color: rgb(192, 38, 38);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease;
}

/* Active state (value = 50) */
.subclass-slider.active {
    background-color: var(--color-primary);
}

.subclass-slider.active::-webkit-slider-thumb {
    background-color: #030;
    box-shadow: -3px 3px 6px rgba(0,0,0,0.5);
}

.subclass-slider.active::-moz-range-thumb {
    background-color: #030;
    box-shadow: -3px 3px 6px rgba(0,0,0,0.5);
}

/* Skill Line Dropdowns */
#skill-lines-section {
    position: absolute;
    top: 41.65%;
    right: 0;
    width: 95%;
    height: auto;
    padding-top: 1%;
}

.skill-line-dropdown {
    position: relative;
    width: 100%;
    height: 5.5%;
    margin-bottom: 1%;
    padding: 1%;
    background: var(--color-panel);
    /* color: var(--color-text); */
    border: 1px solid var(--color-secondary);
    border-radius: 5px;
    font-size: clamp(1.5vb, 1.5rem, 1.5vb);
    box-sizing: border-box;
    cursor: pointer;
}

.skill-line-dropdown:disabled {
    background: #444;
    color: #888;
    opacity: 0.6;
    cursor: not-allowed !important;
}

.skill-line-dropdown option {
    background: var(--color-panel);
    /* color: var(--color-text); */
}

/* Class-specific coloring */
.skill-line-dropdown[data-selected-class="Arcanist"] {
    color: var(--class-arcanist);
    border-left: 4px solid var(--class-arcanist);
}
.skill-line-dropdown[data-selected-class="Dragon Knight"] {
    color: var(--class-dragonknight);
    border-left: 4px solid var(--class-dragonknight);
}
.skill-line-dropdown[data-selected-class="Necromancer"] {
    color: var(--class-necromancer);
    border-left: 4px solid var(--class-necromancer);
}
.skill-line-dropdown[data-selected-class="Nightblade"] {
    color: var(--class-nightblade);
    border-left: 4px solid var(--class-nightblade);
}
.skill-line-dropdown[data-selected-class="Sorcerer"] {
    color: var(--class-sorcerer);
    border-left: 4px solid var(--class-sorcerer);
}
.skill-line-dropdown[data-selected-class="Templar"] {
    color: var(--class-templar);
    border-left: 4px solid var(--class-templar);
}
.skill-line-dropdown[data-selected-class="Warden"] {
    color: var(--class-warden);
    border-left: 4px solid var(--class-warden);
}
.skill-line-dropdown:not([data-selected-class]),
.skill-line-dropdown[data-selected-class=""] {
    color: var(--color-text);
    border-left: 1px solid var(--color-secondary);
}

/* Option hover states */

.skill-line-dropdown option[data-class="Arcanist"] {
    color: var(--class-arcanist) !important;
}
.skill-line-dropdown option[data-class="Dragon Knight"] {
    color: var(--class-dragonknight) !important;
}
.skill-line-dropdown option[data-class="Necromancer"] {
    color: var(--class-necromancer) !important;
}
.skill-line-dropdown option[data-class="Nightblade"] {
    color: var(--class-nightblade) !important;
}
.skill-line-dropdown option[data-class="Sorcerer"] {
    color: var(--class-sorcerer) !important;
}
.skill-line-dropdown option[data-class="Templar"] {
    color: var(--class-templar) !important;
}
.skill-line-dropdown option[data-class="Warden"] {
    color: var(--class-warden) !important;
}

/* Disabled states */
.build-right-class:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* ===============================================
   11. CONTENT EDITABLE AREAS
   =============================================== */

.build-center-title {
    position: absolute;
    top: 0%;
    left: -2%;
    width: 96%;
    height: 9%;
    padding: 0%;
    margin-bottom: 2%;
    color: var(--color-primary);
    font-size: clamp(2.9vb, 2.9rem, 2.9vb);
    font-weight: bold;
    text-align: center;
    text-shadow: var(--shadow-sm);
    overflow-y: hidden;
    z-index: 10;
}

.build-center-title[contenteditable]:empty::before {
    content: attr(placeholder);
    color: var(--color-primary);
    font-size: clamp(2.9vb, 2.9rem, 2.9vb);
    font-weight: bold;
    text-shadow: var(--shadow-md), -3px 3px 6px var(--color-background);
    pointer-events: none;
}

.build-center-title[contenteditable]:focus::before {
    content: "";
}

.build-right-user-name {
    position: absolute;
    top: 13.5%;
    left: 2.75%;
    width: 94.5%;
    height: 6%;
    padding: 2%;
    border: none;
    background: var(--color-background);
    color: var(--color-text);
    font-size: clamp(2.5vb, 2.5rem, 2.5vb);
    font-weight: bold;
    text-align: center;
    overflow-y: hidden;
    /* Display-only styling */
    pointer-events: none;
    user-select: none;
    cursor: default;
    caret-color: transparent;
}

.build-right-user-name:focus,
.build-right-user-name:focus-visible {
    outline: none;
    box-shadow: none;
}

.build-center-ap-description {
    position: absolute;
    top: 26%;
    left: 5%;
    width: 90%;
    height: 60%;
    padding: 3%;
    color: var(--color-text);
    font-size: clamp(1.75vb, 1.75rem, 1.75vb);
    font-weight: bold;
    text-align: center;
    text-shadow: var(--text-shadow-standard);
    resize: none;
    outline: none;
    overflow-wrap: break-word;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
    z-index: 10;
}

[contenteditable]:empty::before {
    content: attr(placeholder);
    color: var(--color-text);
    pointer-events: none;
}

[contenteditable]:focus::before {
    content: "";
}

/* ===============================================
   12. SKILLS & CONSUMABLES
   =============================================== */
.build-bottom-conlabel,
.buildbottom-skillslabel,
.build-bottom-ultlabel {
    position: absolute;
    height: 30%;
    top: -9%;
    font-size: clamp(2vb, 2rem, 2vb);
    font-weight: bold;
    text-align: center;
}

.build-bottom-conlabel {
    margin-top: 15%;
    justify-self: center;
}

.buildbottom-skillslabel {
    top: -8%;
    left: 28.5%;
}

.build-bottom-ultlabel {
    top: -8%;
    left: 86%;
}

.build-bottom .consumables-row {
    position: absolute;
    bottom: 8%;
    left: 7.5%;
    width: 24%;
    height: auto;
    /* border: 3px solid var(--color-secondary); */
    background: linear-gradient(to bottom, var(--color-background) 25%, var(--color-secondary));
    border: var(--border-thick);
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-top: 4.5%;
    align-content: center;
}

.build-bottom .con {
    position: relative;
    height: 70%;
    margin-top: 19%;
    aspect-ratio: 1 / 1;
    background: var(--color-panel);
    box-shadow: var(--shadow-md), 0 0 10px rgba(0, 0, 0, 0.5) ;
    /* border: 3px solid var(--color-secondary); */
    border-radius: 5px;
    cursor: pointer;
}

#build-bottom-con1 {
    background-image: url('/graphics/Icon-Food.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 18%;
}

#build-bottom-con2 {
    background-image: url('/graphics/Icon-Potions.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 8%;
}



.build-bottom .skills-row {
    position: absolute;
    bottom: 5%;
    left: 39%;
    width: 60%;
    height: auto;
    display: grid;
    background: linear-gradient(to bottom, var(--color-background) 25%, var(--color-secondary));
    border: var(--border-thick);
    border-radius: 20px;
    grid-template-rows: repeat(2, 1fr);
    padding: 2%;
    padding-top: 5%;
    padding-bottom: 3%;
    gap: 7%;
}

.build-bottom .skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: 100%;
}

.build-bottom .skill-slot {
    position: relative;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-image: url('/graphics/Icon-Skill.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: var(--shadow-md), 0 0 10px rgba(0, 0, 0, 0.5) ;
    /* border: 3px solid var(--color-secondary); */
    border-radius: 5px;
    cursor: pointer;
}

#build-bottom-b1-u,
#build-bottom-b2-u,
#build-bottom-b3-u {
    background-image: url('/graphics/Icon-Ult2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
#build-bottom-b3-1,
#build-bottom-b3-2,
#build-bottom-b3-3,
#build-bottom-b3-4,
#build-bottom-b3-5,
#build-bottom-b3-u {
    border: 3px solid rgb(97, 15, 0);
    box-shadow: -3px 3px 6px rgba(255, 81, 0, 0.877);
}

/* Werewolf 3-bar layout - all bars equal size */
.build-bottom .skills-row.werewolf-active {
    grid-template-rows: repeat(3, 1fr);
    padding-bottom: 5%;
}

/* Hide werewolf bar by default */
#werewolf-bar {
    display: none;
}
.view-only #werewolf-bar.visible {
    display: flex;
}

/* Show werewolf bar when active */
.build-bottom .skills-row.werewolf-active #werewolf-bar {
    display: grid;
}

/* Adjust Skils Label Position when Werewolf is Active */
.build-bottom .skills-row.werewolf-active .buildbottom-skillslabel,
.build-bottom .skills-row.werewolf-active .build-bottom-ultlabel {
    top: -5.5%;
}

/* Reduce Apparel Description Height when Werewolf is Active */
.build-sheet.werewolf-active .build-center-ap-description {
    height: 48%;
}
.con:hover,
.skill-slot:hover {
    scale: 1.15; 
    scale: 1.15; 
    box-shadow: 
        0 0 3px var(--color-primary),
        0 0 7px var(--color-primary),
        0 0 9px var(--color-primary);
}

/* ===============================================
   13. MODAL & OVERLAY SYSTEMS
   =============================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* ========================================= */
/* Skills & Morph System Styles              */
/*      Moved to css/modules/skills.css      */
/*      Moved to css/modules/morphs.css      */
/* ========================================= */

/* Button Styles */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-background);
}

.btn-primary:hover {
    background: #ffed4e;
}

.btn-secondary {
    background: #666;
    color: var(--color-text);
    border: 1px solid #999;
}

.btn-secondary:hover {
    background: #777;
}

/* ===============================================
   14. CHATBOT INTERFACE
   =============================================== */

.chatbot-container.hidden {
    transform: translateX(105%);
}

.chatbot-toggle {
    position: absolute;
    top: -3.4%;
    right: 103.8%;
    width: 60px;
    max-width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 1099;
    transition: transform 0.2s ease;
    box-shadow: 
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.8),
        0 2px 15px rgba(0, 0, 0, 0.8);
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.8),
        0 2px 10px rgba(0, 0, 0, 0.8);
}

.chatbot-toggle.active {
    transform: translate(35.2vw, 1.2vw); /* Moves with the chatbot  (Verticle , Horizontal)*/
    transition: transform 0.3s ease;
    width: 8.5%;
    height: 7.5%;
    color: #fff;
    font-size: 16px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.3);
    transition: transform 0.2s ease;
    box-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.9); 
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.6);
}
.chatbot-toggle.active:hover {
    transform: translate(35.2vw, 1.2vw) scale(1.6);
    transition: transform 0.2s ease;
    box-shadow: none;
    text-shadow: none;
}

   
.chatbot-container {
    position: absolute;
    bottom: 4.5%;
    right: 1.6%;
    width: 34.2%; /* 40 on welcome possibly */
    height: 91.1%;
    padding: 0.75%;
    /*background-color: var(--color-panel);*/
    background: linear-gradient(to bottom, var(--color-background) 25%, var(--color-secondary));
    border: 4px solid #0c2002;
    border-radius: 20px;
    box-sizing: border-box;
    z-index: 1100;
    transition: transform 0.3s ease-in-out;
}

.chatbot-container-welcome {
    position: absolute;
    bottom: 2%;
    right: 1%;
    width: 29.5%; /* 40 on welcome possibly */
    height:73%;
    padding: 0.75%;
    /*background-color: var(--color-panel);*/
    background: linear-gradient(to bottom, var(--color-background) 25%, var(--color-secondary));
    border: 4px solid #0c2002;
    border-radius: 20px;
    box-sizing: border-box;
    z-index: 1100;
    transition: transform 0.3s ease-in-out;
    box-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 10px rgba(0, 0, 0, 0.9); 
}

.chatbot-container video,
.chatbot-container-welcome video {
    float: left;
    width: 39%;
    height: 99.5%;
    border-radius: 10px;
    border-right: 2px solid #000;
    border-left: 2px solid #000;
    object-fit: cover;
    object-position: top;
    box-shadow: var(--shadow-sm);
}

.chatbot-button,
.chatbot-button-welcome {
    position: absolute;
    top: -11.5%;
    height: 12%;
    padding: 2%;
    color: var(--color-background);
    font-size: clamp(2vb, 2rem, 2vb);
    font-weight: bold;
    text-align: center;
    border-radius: 40px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    box-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9);
}

.chatbot-container-welcome .custom-builds:hover,
.chatbot-container-welcome .spores-builds:hover,
.chatbot-container-welcome .community-builds:hover,
.chatbot-container-welcome .my-builds:hover {
    transition: transform 0.2s ease-in-out;
    transform: scale(1.2);
    box-shadow: 
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.9);
}

.chatbot-container .custom-builds,
.chatbot-container-welcome .custom-builds {
    left: 1%;
    width: 23%;
    background-color: var(--color-primary);
}

.chatbot-container .spores-builds,
.chatbot-container-welcome .spores-builds {
    left: 26%;
    width: 23%;
    background-color: #999;
}

.chatbot-container .community-builds,
.chatbot-container-welcome .community-builds {
    left: 51%;
    width: 23%;
    background-color: #999;
}

.chatbot-container .my-builds,
.chatbot-container-welcome .my-builds {
    left: 76%;
    width: 23%;
    background-color: #999;
}

.chatbot-messages {
    height: 88%;
    margin-left: 41.5%;
    margin-top: 1%;
    border-radius: 15px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-weight: bold;
}

.chatbot-messages::-webkit-scrollbar {
    display: none;
}

.chatbot-messages div {
    padding: 10px 15px;  /* top/bottom __px, left/right __px */
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.chat-message {
    margin: 5px 5px;
    padding: 15px;
    border-radius: 15px;
}

.user-message {
    margin: 10px 0;
    margin-left: 20%;
    padding: 15px;
    border-radius: 5px;
    background-color: var(--color-text);
    color: var(--color-background);
    text-align: right;
}

.bot-message {
    margin: 10px 0;
    margin-left: 5px;
    padding: 18px 25px; /* more generous padding all around */
    border-radius: 10px;
    background-color: var(--color-primary);
    color: var(--color-background);
    text-align: left;
}

/* Normalize bold/italic in chatbot messages */
.bot-message strong,
.bot-message em,
.bot-message b,
.bot-message i,
.user-message strong,
.user-message em,
.user-message b,
.user-message i {
    line-height: inherit;
    font-size: inherit;
    display: inline;
    vertical-align: baseline;
    margin: 0;
    padding: 0;
}

/* Ensure consistent line-height on message containers */
.bot-message,
.user-message {
    line-height: 1.4;
}

.system-message,
.thinking-message {
    margin: 5px 0;
    padding: 15px;
    border-radius: 5px;
    background-color: var(--color-panel);
    color: var(--color-text);
    font-style: italic;
    text-align: center;
}

.thinking-message {
    position: relative;
}

.thinking-message::after {
    content: '';
    animation: dots 1.5s infinite;
}

.chatbot-input {
    position: absolute;
    bottom: 1.5%;
    left: 2%;
    right: 2%;
    top: 90%;
    display: flex;
}

.chatbot-input input {
    width: 83%;
    padding: 5px;
    margin-bottom: 0;
    font-weight: bold;
    box-sizing: border-box;
    border-radius: 22px;
    border-width: 2px;
    box-shadow: var(--shadow-md);
}

.chatbot-input button {
    width: 17%;
    margin-left: 1%;
    margin-bottom: 0;
    padding: 5px;
    background-color: var(--color-primary);
    color: var(--color-background);
    font-weight: bold;
    font-size: clamp(2vb, 2rem, 2vb);
    cursor: pointer;
    border-width: 3px;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease-in-out;
}

.chatbot-input button:hover {
    transition: transform 0.2s ease-in-out;
    transform: scale(1.15);
}

/* ===============================================
   15. UTILITY CLASSES & MISC
   =============================================== */
.build-center-tooltip {
    position: fixed;
    padding: 0.5%;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.99));
    border: 2px solid var(--color-secondary);
    border-radius: 15px;
    color: var(--color-text);
    font-size: clamp(1.75vb, 1.75rem, 1.75vb);
    max-width: 20%;
    min-width: 400px;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    display: none;
    z-index: 15000;
}

/* ===== GEAR TOOLTIP STYLES ===== */
.gear-tooltip-container {
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
    padding: 5px;
    min-width: 250px;
    border: 2px solid var(--gear-quality-color, #ffffff);
    border-radius: 10px;
}

.gear-tooltip-name {
    color: var(--gear-quality-color, #ffffff);
    font-weight: bold;
    font-size: 16px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
}

.gear-tooltip-slot-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-top: 1px solid #444;
}

.gear-tooltip-slot-label {
    color: #bca784;
}

.gear-tooltip-slot-value {
    color: #fff;
}

.gear-tooltip-section {
    border-top: 1px solid #444;
    margin-top: 8px;
    padding-top: 8px;
}

.gear-tooltip-section-label {
    color: #bca784;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.gear-tooltip-section-value {
    color: #fff;
    font-size: 12px;
    margin-top: 2px;
}

.gear-tooltip-bonus {
    font-size: 11px;
    line-height: 1.4;
    margin: 3px 0;
}

.gear-tooltip-bonus.active {
    color: #88ff88;
}

.gear-tooltip-bonus.inactive {
    color: #888;
}

/* Quality color CSS variables */
.gear-tooltip-container[data-quality="white"] { --gear-quality-color: #ffffff; }
.gear-tooltip-container[data-quality="green"] { --gear-quality-color: #1eff00; }
.gear-tooltip-container[data-quality="blue"] { --gear-quality-color: #0070ff; }
.gear-tooltip-container[data-quality="purple"] { --gear-quality-color: #a335ee; }
.gear-tooltip-container[data-quality="gold"] { --gear-quality-color: #ffd700; }
.gear-tooltip-container[data-quality="mythic"] { --gear-quality-color: #ff8800; }

.build-left-cp .cp-slots {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.build-bottom .skills-row {
    margin-bottom: 2%;
}

.build-bottom .skills-row:last-child {
    margin-bottom: 0;
}

.skill-selector-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.skill-selector-main-content {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
}

.morph-indicator-visual {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    color: var(--color-background);
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-footer {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1%;
    background-color: var(--color-background);
    color: var(--color-text-beige);
    text-align: center;
    display: block;
}

footer a {
    margin: 0 10px;
    color: var(--color-primary);
    font-size: clamp(2vb, 1.5rem, 2vb);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===============================================
   16. ANIMATIONS
   =============================================== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* ===============================================
   17. SCROLLBAR STYLING
   =============================================== */
.skill-categories-panel::-webkit-scrollbar,
.skills-display-panel::-webkit-scrollbar {
    width: 8px;
}

.skill-categories-panel::-webkit-scrollbar-track,
.skills-display-panel::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.skill-categories-panel::-webkit-scrollbar-thumb,
.skills-display-panel::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

.skill-categories-panel::-webkit-scrollbar-thumb:hover,
.skills-display-panel::-webkit-scrollbar-thumb:hover {
    background: #6a5728;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20%;
    right: 2%;
    min-width: 250px;
    max-width: 400px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    color: var(--color-text-beige);
    font-size: clamp(1.4vb, 0.95rem, 1.4vb);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===============================================
   18. MEDIA QUERIES
   =============================================== */
@media (max-width: 1200px) {
    /* Tablet adjustments */
    .build-sheet {
        width: 60%;
    }
    
    .chatbot-container {
        width: 35%;
    }
}

@media (max-width: 768px) {
    /* Mobile adjustments - would need significant layout restructuring */
    /* Currently optimized for desktop only */
}

/* ===============================================
   END OF STYLESHEET
   =============================================== */
