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

body {
    /*background: #ffffff url(fbg.png) 0px 70px repeat-x;*/
    color: #FFFFFF;
    font-family: Arial, sans-serif;
}

/* Search Bar and Header */
.searchbar {
    padding: 0;
    width: 100%;
    background: #222222 url(weave.png);
    /*color: #FFFFFF;*/
    font-family: Arial, sans-serif;
    font-size: 8pt;
}

.logo {
    background: url(headerlogowithbg.png) 0 0 no-repeat;
    height: 70px;
    max-height: 55px;
    padding: 10px 50px 5px;
}

/* Form Elements */
.search {
    border: 1px #000000 solid;
    /*background-color: #dddddd;*/
    color: #222222;
    height: 15px;
    padding: 0 5px;
    font-family: Arial, sans-serif;
    font-size: 8pt;
}

/* Buttons */
.Button,
.eq-button-disabled,
.eq-button-disabled:link,
.eq-button-disabled:visited,
.eq-button-disabled:active,
.eq-button-disabled:hover,
.eq-button,
.eq-button a,
.eq-button:link,
.eq-button:visited,
.eq-button:active,
.eq-button:hover {
    height: 36px;
    border: 0;
    margin: 10px auto;
    display: block;
    /*line-height:       21px;*/
    text-decoration: none;
    font-weight: normal;
    color: #ffffff !important;
    opacity: 1.0;
    cursor: pointer;
    position: relative;
    background-size: 100%;
    background-repeat: round;
    width: auto;
    padding: 10px;
    font-size: 14px;
    background-image: url(button.gif);
}

.eq-button:hover {
    background-image: url(/static/eq-ui/images/button_small_hover.png);
}

.eq-button,
.eq-button:link,
.eq-button:visited {
    background-image: url(/static/eq-ui/images/button_small_up.png);
}

.eq-button:active,
.eq-button-disabled,
.eq-button-disabled:link,
.eq-button-disabled:visited,
.eq-button-disabled:active,
.eq-button-disabled:hover {
    background-image: url(/static/eq-ui/images/button_small_down.png);
}

.eq-button-disabled,
.eq-button-disabled:link,
.eq-button-disabled:visited,
.eq-button-disabled:active,
.eq-button-disabled:hover {
    cursor: default;
}


.eq-button-wrap-disabled,
.eq-button-wrap-disabled:link,
.eq-button-wrap-disabled:visited,
.eq-button-wrap-disabled:active,
.eq-button-wrap-disabled:hover,
.eq-button-wrap,
.eq-button-wrap:link,
.eq-button-wrap:visited,
.eq-button-wrap:active,
.eq-button-wrap:hover {
    height: 50px;
    width: 50px;
    border: 0px;
    padding: 0px;
    margin: 1px;
    display: inline-block;
    line-height: 40px;
    text-decoration: none;
    font-weight: normal;
    color: #ffffff;
    opacity: 1.0;
    cursor: pointer;
    position: relative;

    background-size: 100%;
    background-repeat: no-repeat;
}

.eq-button-wrap:hover {
    background-image: url(/static/eq-ui/images/button_big_hover.png);
}

.eq-button-wrap,
.eq-button-wrap:link,
.eq-button-wrap:visited {
    background-image: url(/static/eq-ui/images/button_big_up.png);
}

.eq-button-wrap:active,
.eq-button-wrap-disabled,
.eq-button-wrap-disabled:link,
.eq-button-wrap-disabled:visited,
.eq-button-wrap-disabled:active,
.eq-button-wrap-disabled:hover {
    background-image: url(/static/eq-ui/images/button_big_down.png);
}

.eq-button-wrap-disabled,
.eq-button-wrap-disabled:link,
.eq-button-wrap-disabled:visited,
.eq-button-wrap-disabled:active,
.eq-button-wrap-disabled:hover {
    cursor: default;
}


.Button {
    position: absolute;
}

.eq-button:hover {
    cursor: pointer;
}

.eq-button-fancy {
    text-shadow: 0px 0px 3px #000, 0px 0px 0px #000, 1px 2px 5px #000, 4px 4px 5px #000;
    font-family: menuetto, serif;

    color: #fcc721;
    -webkit-background-clip: text;
    -moz-background-clip: text;

    border: 2px solid rgba(218, 218, 218, 0.3);
    border-radius: 7px;
    font-size: 22px;

    margin: 5px;

    padding-left: 10px;
    padding-right: 10px;

    display: inline-block;
}

.eq-button-fancy:hover,
.eq-button-fancy-highlighted {
    border: 2px solid #fff300; /* some kind of blue border */

    /* other CSS styles */

    /* round the corners */
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;

    /* make it glow! */
    -webkit-box-shadow: 0px 0px 4px #fff300;
    -moz-box-shadow: 0px 0px 4px #fff300;
    box-shadow: 0px 0px 4px #fff300; /* some variation of blue for the shadow */

}

.eq-button-fancy.active {
    border: 2px solid #fff300; /* some kind of blue border */

    /* other CSS styles */

    /* round the corners */
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;

    /* make it glow! */
    -webkit-box-shadow: 0px 0px 4px #fff300;
    -moz-box-shadow: 0px 0px 4px #fff300;
    box-shadow: 0px 0px 4px #fff300; /* some variation of blue for the shadow */
}


/* Utility Classes */
/* Checkboxes */
.check0,
.check1 {
    height: 16px;
    width: 16px;
    margin: 1px;
}

.check0 {
    background-image: url(check_0.png);
}

.check1 {
    background-image: url(check_1.png);
}

/* Tables */
.StatTable {
    font-family: Arial, sans-serif;
    font-size: 9pt;
    color: #FFFFFF;
    width: 100%;
    text-align: inherit;
    vertical-align: top;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
}

.StatTable td:hover {
    cursor: default;
}

.AugTable {
    font-family: Arial, sans-serif;
    font-size: 7pt;
    color: #FFFFFF;
    width: 320px;
    text-align: inherit;
    vertical-align: top;
    margin: 0;
    padding: 3px;
    border: 1px #7b714a dotted;
}

.Divider {
    background-color: #7b714a;
    width: 100%;
    height: 2px;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
}

/* Inventory Items */
.Slot {
    height: 40px;
    width: 40px;
    border: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 3;
}

.BagOuter .Slot {
    position: absolute;
    /* Positions will be relative to the .BagOuter container */
}

.Slot:hover {
    cursor: pointer;
}

.Coin {
    height: 25px;
    width: 83px;
    border: 0;
    text-align: center;
    background-image: url(coin.gif);
    margin: 0;
    padding: 0;
    position: absolute;
}

/* Navigation */
.NavOuter {
    position: sticky;
    top: 20px;
    height: fit-content;
    margin-bottom: 0;
    width: 150px; /* Fixed width for navigation */
    min-width: 150px; /* Prevent shrinking */
    max-width: 150px; /* Prevent growing */
    flex-shrink: 0; /* Don't allow flex to shrink this */
    background-image: url(light.gif);
    padding: 11px 5px 9px;
    border: 2px #7b714a solid;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    color: #FFFFFF;
    order: 1;
}

.NavInner {
    background-image: url(dark.gif);
    border: 1px #444444 solid;
    padding: 6px;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px
}

.NavInner .eq-button {
    width: auto;
    padding: 0 20px; /* Increase horizontal padding */
    /*margin: 0 !important; !* Override existing margins *!*/
}

.character-main {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
    order: 3;
}

/* Content containers within character-main */
.character-windows-container,
.keys-container {
    margin-left: 0; /* Ensure no left margin */
    padding-left: 0; /* Ensure no left padding */
}

/* Keys container specific positioning */
.character-main .keys-container {
    margin: 0;
    width: 100%;
}

/* Character windows container positioning */
.character-windows-container {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

/* Ensure inventory and bank containers don't add extra spacing */
.inventory-container,
.bank-container {
    margin-left: 0;
    padding-left: 0;
}

/* Item Window */
.ItemOuter {
    position: relative;
    display: none;
    margin: 0 auto;
    pointer-events: auto;
    width: 100%;
    max-width: 350px;
    padding: 11px 5px 9px;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    color: #FFFFFF;
    transition: opacity 0.2s ease-in-out;
    background-image: url(light.gif); /* Add background for better visibility when dragging */
    border: 2px #7b714a solid; /* Add border for better visibility when dragging */
}

.ItemOuter.visible {
    opacity: 1;
}

.ItemOuter:hover {
    cursor: move;
}

/* Ensure tooltip content doesn't interfere with dragging */
.ItemOuter * {
    pointer-events: none;
}

/* Re-enable pointer events for the tooltip itself */
.ItemOuter {
    pointer-events: auto;
}

.ItemInner {
    background-image: url(dark.gif);
    border: 1px #444444 solid;
    padding: 6px;
}

.ItemTitle {
    position: absolute;
    top: -11px;
    left: 4px;
    border: 0;
    padding: 0;
    width: 352px;
    height: 21px;
}

.ItemTitleLeft {
    background-image: url(leftt.gif);
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 21px;
}

.ItemTitleMid {
    background-image: url(midt.gif);
    position: absolute;
    text-align: center;
    line-height: 21px;
    top: 0;
    left: 14px;
    width: 324px;
    height: 21px;
}

.ItemTitleRight {
    background-image: url(rightt.gif);
    position: absolute;
    top: 0;
    left: 338px;
    width: 14px;
    height: 21px;
}

/* Inventory Window */
.InventoryOuterGM {
    position: relative;
    background-image: url(lightgm.jpg);
    width: 430px;
    height: 435px;
    max-width: 426px;
    max-height: 431px;
    padding: 0;
    border: 2px #4b414a solid;
    font-family: arial, serif;
    font-size: 9pt;
    color: #FFFFFF;
}

.inventory-container {
    position: relative;
    width: 460px;
    text-align: left;
    z-index: 2;
}

.InventoryOuter {
    position: relative;
    background-image: url(light.gif);
    width: 430px;
    height: 435px;
    max-width: 426px;
    max-height: 431px;
    padding: 0;
    border: 2px #7b714a solid;
    z-index: 2;
}

.InventoryInner {
    background-image: url(light.gif);
    border: 2px #40434e solid;
    position: absolute;
    top: 13px;
    left: 8px;
    width: 412px;
    height: 409px;
    max-width: 408px;
    max-height: 405px;
    padding: 0;
}

.InventoryTitle {
    position: absolute;
    top: -11px;
    left: 4px;
    border: 0;
    padding: 0;
    width: 418px;
    height: 21px;
    font-family: arial;
    font-size: 9pt;
    color: #FFFFFF;
}

.InventoryTitleLeft {
    background-image: url(leftt.gif);
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 21px;
    border: 0;
    padding: 0;
}

.InventoryTitleMid {
    background-image: url(midt.gif);
    position: absolute;
    text-align: center;
    line-height: 21px;
    top: 0;
    left: 14px;
    width: 390px;
    height: 21px;
    border: 0;
    padding: 0;
}

.InventoryTitleRight {
    background-image: url(rightt.gif);
    position: absolute;
    top: 0;
    left: 404px;
    width: 14px;
    height: 21px;
    border: 0;
    padding: 0;
}

.InventoryStats {
    height: 370px;
    width: 115px;
    position: absolute;
    top: 14px;
    left: 10px;
}

.InventoryStats2 {
    height: 100px;
    width: 100px;
    position: absolute;
    top: 14px;
    left: 315px;
}

.InventoryMonogram {
    background-image: url(dark.gif);
    border: 1px #444444 solid;
    position: absolute;
    text-align: center;
    top: 57px;
    left: 180px;
    width: 82px;
    height: 168px;
    max-height: 146px;
    max-width: 80px;
    padding: 20px 0 0;
}

.bank-container {
    width: 300px;
    text-align: left;
}

/* Bank Window */
.BankOuter {
    position: relative;
    background-image: url(light.gif);
    width: 191px;
    height: 377px;
    max-width: 177px;
    max-height: 353px;
    padding: 11px 5px 9px 5px;
    border: 2px #7b714a solid;
    font-family: arial, serif;
    font-size: 9pt;
    color: #FFFFFF;
    margin-left: -2px; /* Adjust this value to make it perfectly flush */
}

.BankTitle {
    position: absolute;
    top: -11px;
    left: 4px;
    border: 0;
    padding: 0;
    width: 179px;
    height: 21px;
    font-family: arial, serif;
    font-size: 9pt;
    color: #FFFFFF;
}

.BankTitleLeft {
    background-image: url(leftt.gif);
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 21px;
    border: 0;
    padding: 0;
}

.BankTitleMid {
    background-image: url(midt.gif);
    position: absolute;
    text-align: center;
    line-height: 21px;
    top: 0;
    left: 14px;
    width: 151px;
    height: 21px;
    border: 0;
    padding: 0;
}

.BankTitleRight {
    background-image: url(rightt.gif);
    position: absolute;
    top: 0;
    left: 165px;
    width: 14px;
    height: 21px;
    border: 0;
    padding: 0;
}

/* Bag Window */
.BagOuter {
    position: absolute;
    left: -80px;
    display: none;
    background-image: url(light.gif);
    width: 100px;
    max-width: 102px;
    min-height: 107px; /* Minimum height for smallest bag */
    padding: 11px 5px 50px; /* Added bottom padding for button space */
    border: 2px #7b714a solid;
    pointer-events: auto;
    z-index: 15;
    margin-bottom: 10px;
    margin-left: auto;
    overflow: visible;
}

.BagTitle {
    position: absolute;
    top: -11px;
    left: 4px;
    border: 0;
    padding: 0;
    width: 92px; /* Adjust width to fit bag container */
    height: 21px;
    font-family: arial, serif;
    font-size: 9pt;
    color: #FFFFFF;
}

.BagTitleLeft {
    background-image: url(leftt.gif);
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 21px;
    border: 0;
    padding: 0;
}

.BagTitleMid {
    background-image: url(midt.gif);
    position: absolute;
    text-align: center;
    line-height: 21px;
    top: 0;
    left: 14px;
    width: 64px; /* Adjust for bag width */
    height: 21px;
    border: 0;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.BagTitleRight {
    background-image: url(rightt.gif);
    position: absolute;
    top: 0;
    left: 78px; /* Adjust for bag width */
    width: 14px;
    height: 21px;
    border: 0;
    padding: 0;
}

.bag-item {
    z-index: 5;
}

.bag-slot {
    z-index: 3;
}

.stack-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 2px;
    line-height: 1;
    z-index: 10;
    min-width: 12px;
    text-align: center;
    border: 1px solid #444444;
}

/* Make sure button is positioned relative to bag */
.BagOuter .Button {
    position: absolute;
}

/* Slot Images - Keeping original paths */
.slotimage0 {
    background-image: url(slots/slot_0.gif);
}

.slotimage1 {
    background-image: url(slots/slot_1.gif);
}

.slotimage2 {
    background-image: url(slots/slot_2.gif);
}

.slotimage3 {
    background-image: url(slots/slot_3.gif);
}

.slotimage4 {
    background-image: url(slots/slot_4.gif);
}

.slotimage5 {
    background-image: url(slots/slot_5.gif);
}

.slotimage6 {
    background-image: url(slots/slot_6.gif);
}

.slotimage7 {
    background-image: url(slots/slot_7.gif);
}

.slotimage8 {
    background-image: url(slots/slot_8.gif);
}

.slotimage9 {
    background-image: url(slots/slot_9.gif);
}

.slotimage10 {
    background-image: url(slots/slot_10.gif);
}

.slotimage11 {
    background-image: url(slots/slot_11.gif);
}

.slotimage12 {
    background-image: url(slots/slot_12.gif);
}

.slotimage13 {
    background-image: url(slots/slot_13.gif);
}

.slotimage14 {
    background-image: url(slots/slot_14.gif);
}

.slotimage15 {
    background-image: url(slots/slot_15.gif);
}

.slotimage16 {
    background-image: url(slots/slot_16.gif);
}

.slotimage17 {
    background-image: url(slots/slot_17.gif);
}

.slotimage18 {
    background-image: url(slots/slot_18.gif);
}

.slotimage19 {
    background-image: url(slots/slot_19.gif);
}

.slotimage20 {
    background-image: url(slots/slot_20.gif);
}

.slotimage21 {
    background-image: url(slots/slot_21.gif);
}

.slotimage9999 {
    background-image: url(slots/slot_9999.gif);
}

.slotimage {
    background-image: url(slots/slot_.gif);
}

/* ----------------------------------------------
         locations for bag slots
------------------------------------------------- */
.bagslotloc0 {
    top: 20px;
    left: 6px;
}

.bagslotloc1 {
    top: 20px;
    left: 49px;
}

.bagslotloc2 {
    top: 63px;
    left: 6px;
}

.bagslotloc3 {
    top: 63px;
    left: 49px;
}

.bagslotloc4 {
    top: 106px;
    left: 6px;
}

.bagslotloc5 {
    top: 106px;
    left: 49px;
}

.bagslotloc6 {
    top: 149px;
    left: 6px;
}

.bagslotloc7 {
    top: 149px;
    left: 49px;
}

.bagslotloc8 {
    top: 192px;
    left: 6px;
}

.bagslotloc9 {
    top: 192px;
    left: 49px;
}

/* ----------------------------------------------
         locations for inventory slots
------------------------------------------------- */
.slotloc1 {
    top: 14px;
    left: 137px;
}

.slotloc2 {
    top: 14px;
    left: 180px;
}

.slotloc3 {
    top: 14px;
    left: 223px;
}

.slotloc4 {
    top: 14px;
    left: 267px;
}

.slotloc17 {
    top: 57px;
    left: 137px;
}

.slotloc5 {
    top: 57px;
    left: 267px;
}

.slotloc7 {
    top: 100px;
    left: 137px;
}

.slotloc8 {
    top: 100px;
    left: 267px;
}

.slotloc20 {
    top: 143px;
    left: 137px;
}

.slotloc6 {
    top: 143px;
    left: 267px;
}

.slotloc9 {
    top: 186px;
    left: 137px;
}

.slotloc10 {
    top: 186px;
    left: 267px;
}

.slotloc18 {
    top: 229px;
    left: 137px;
}

.slotloc12 {
    top: 229px;
    left: 180px;
}

.slotloc0 {
    top: 229px;
    left: 223px;
}

.slotloc19 {
    top: 229px;
    left: 267px;
}

.slotloc15 {
    top: 272px;
    left: 180px;
}

.slotloc16 {
    top: 272px;
    left: 223px;
}

.slotloc13 {
    top: 315px;
    left: 137px;
}

.slotloc14 {
    top: 315px;
    left: 180px;
}

.slotloc11 {
    top: 315px;
    left: 223px;
}

.slotloc21 {
    top: 315px;
    left: 267px;
}

.slotloc22 {
    top: 229px;
    left: 317px;
}

.slotloc23 {
    top: 272px;
    left: 317px;
}

.slotloc24 {
    top: 315px;
    left: 317px;
}

.slotloc25 {
    top: 358px;
    left: 317px;
}

.slotloc26 {
    top: 229px;
    left: 360px;
}

.slotloc27 {
    top: 272px;
    left: 360px;
}

.slotloc28 {
    top: 315px;
    left: 360px;
}

.slotloc29 {
    top: 358px;
    left: 360px;
}

.slotloc9999 {
    top: 272px;
    left: 267px;
}

/* added powersource slot 2/5/2014 */

/* ----------------------------------------------
         locations for bank slots
------------------------------------------------- */
.slotloc2000 {
    top: 20px;
    left: 6px;
}

.slotloc2001 {
    top: 63px;
    left: 6px;
}

.slotloc2002 {
    top: 106px;
    left: 6px;
}

.slotloc2003 {
    top: 148px;
    left: 6px;
}

.slotloc2004 {
    top: 20px;
    left: 50px;
}

.slotloc2005 {
    top: 63px;
    left: 50px;
}

.slotloc2006 {
    top: 106px;
    left: 50px;
}

.slotloc2007 {
    top: 148px;
    left: 50px;
}

.slotloc2008 {
    top: 20px;
    left: 97px;
}

.slotloc2009 {
    top: 63px;
    left: 97px;
}

.slotloc2010 {
    top: 106px;
    left: 97px;
}

.slotloc2011 {
    top: 148px;
    left: 97px;
}

.slotloc2012 {
    top: 20px;
    left: 141px;
}

.slotloc2013 {
    top: 63px;
    left: 141px;
}

.slotloc2014 {
    top: 106px;
    left: 141px;
}

.slotloc2015 {
    top: 148px;
    left: 141px;
}

.slotloc2016 {
    top: 200px;
    left: 97px;
}

.slotloc2017 {
    top: 243px;
    left: 97px;
}

.slotloc2018 {
    top: 286px;
    left: 97px;
}

.slotloc2019 {
    top: 329px;
    left: 97px;
}

.slotloc2020 {
    top: 200px;
    left: 141px;
}

.slotloc2021 {
    top: 243px;
    left: 141px;
}

.slotloc2022 {
    top: 286px;
    left: 141px;
}

.slotloc2023 {
    top: 328px;
    left: 141px;
}

/* ----------------------------------------------
         bag button rows
------------------------------------------------- */
.bagbuttonrow1 {
    top: 74px;
    left: 25px;
}

.bagbuttonrow2 {
    top: 117px;
    left: 25px;
}

.bagbuttonrow3 {
    top: 160px;
    left: 25px;
}

.bagbuttonrow4 {
    top: 202px;
    left: 25px;
}

.bagbuttonrow5 {
    top: 245px;
    left: 25px;
}

/* ----------------------------------------------
         bag rows
------------------------------------------------- */
.bagrow1 {
    height: auto;
    min-height: 107px;
    padding-bottom: 50px; /* Space for button */
}

.bagrow2 {
    height: auto;
    min-height: 150px;
    padding-bottom: 50px;
}

.bagrow3 {
    height: auto;
    min-height: 193px;
    padding-bottom: 50px;
}

.bagrow4 {
    height: auto;
    min-height: 235px;
    padding-bottom: 50px;
}

.bagrow5 {
    height: auto;
    min-height: 278px;
    padding-bottom: 50px;
}

/* Hide Elements */
div.Slot.slotloc0.slotimage0,
font[color="Gold"],
div.Slot.slotloc9999.slotimage9999 {
    display: none;
}

.tooltip-container {
    position: absolute;
    left: 0;
    width: 100%;
    top: calc(100% - 275px); /* Adjust based on your needs */
    z-index: 1000;
    pointer-events: none;
}

.tooltip-spacer {
    height: 220px;
    width: 100%;
    visibility: hidden;
    /* Prevent interaction with spacer */
    pointer-events: none;
    /* Ensure it doesn't affect layout */
    position: relative;
    z-index: 1;
}

.permission-card {
    transition: all 0.3s ease;
}

.permission-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.character-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 100px); /* Adjust based on your header height */
    position: relative;
}

.character-windows-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    justify-content: center;
    /*position: relative;*/
    /*min-height: 350px;*/
}

.bags-container {
    position: relative;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    text-align: right;
    pointer-events: none; /* Allow clicks to pass through the container */
    z-index: 10;
    height: 0; /* Don't take up vertical space */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .character-layout {
        flex-direction: column;
    }

    .NavOuter {
        position: relative;
        top: 0;
        width: 100%;
        max-width: none;
    }

    .NavInner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .character-main {
        margin-left: 0;
    }

    .inventory-container {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .character-layout {
        padding: 10px;
        gap: 10px;
    }

    .tooltip-container {
        position: fixed;
        bottom: 0;
        top: auto;
        max-height: 40vh;
        overflow-y: auto;
        background: rgba(0, 0, 0, 0.9);
    }

    .ItemOuter {
        max-width: 90vw;
        width: auto;
        margin: 10px auto;
    }

    /* AA page: allow fixed-width window to scroll horizontally */
    .FlagOuter {
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .NavOuter {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }

    .NavInner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .character-layout {
        flex-direction: column;
    }

    .NavOuter {
        position: relative;
        top: 0;
        width: 100%;
        max-width: none;
    }

    .NavInner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .character-main {
        margin-left: 0;
    }
}

@media (max-width: 1200px) {
    .character-windows-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .BankOuter {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .character-layout {
        flex-direction: column;
    }
}

.breadcrumb {
    background-color: rgba(123, 113, 74, 0.1); /* Matches your theme color with transparency */
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.breadcrumb-item a {
    color: #7b714a; /* Matches your theme color */
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #6b614a; /* Slightly darker on hover */
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #4a4532; /* Darker version of theme color for current page */
}

/* Custom separator to match theme */
.breadcrumb-item + .breadcrumb-item::before {
    color: #7b714a;
}

/* Simple alternative - add this to your style.css instead */

.keys-container {
    background-image: url(light.gif);
    border: 2px #7b714a solid;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    display: block;
    width: 100%;
}

.keys-container h2 {
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 14pt;
    margin-bottom: 15px;
    text-align: center;
    background-image: url(dark.gif);
    border: 1px #444444 solid;
    padding: 10px;
}

.keys-container .StatTable {
    background-image: url(dark.gif);
    border: 1px #444444 solid;
    padding: 0; /* Remove table padding */
    width: auto !important; /* Let table size to content */
    min-width: 364px; /* Minimum table width */
    box-sizing: border-box; /* Include padding in width calculation */
    margin: 0;
    text-align: left;
}

.keys-container .StatTable th {
    background-color: rgba(123, 113, 74, 0.5);
    padding: 12px 15px; /* Increased padding since table padding is removed */
    text-align: left;
    border-bottom: 2px solid #7b714a;
    white-space: nowrap;
}

.keys-container .StatTable td {
    padding: 15px 20px; /* Increased padding since table padding is removed */
    border-bottom: 1px solid #555555;
}

.keys-container .StatTable td a {
    color: #FFFFFF;
    text-decoration: none;
}

.keys-container .StatTable td a:hover {
    color: #7b714a;
    text-decoration: underline;
}

.FlagOuter {
    position: relative;
    background-image: url(light.gif);
    width: 664px;
    max-width: 650px;
    padding: 11px 5px 9px 5px;
    border: 2px #7b714a solid;
    font-family: arial;
    font-size: 9pt;
    color: #FFFFFF;
}

.FlagInner {
    background-image: url(light.gif);
    border: 1px #40434e solid;
    padding: 6px;
    font-family: arial;
    font-size: 9pt;
    color: #FFFFFF;
}

.FlagTitle {
    position: absolute;
    top: -11px;
    left: 4px;
    border: 0px;
    padding: 0px;
    width: 652px;
    height: 21px;
    font-family: arial;
    font-size: 9pt;
    color: #FFFFFF;
}

.FlagTitleLeft {
    background-image: url(leftt.gif);
    position: absolute;
    top: 0px;
    left: 0px;
    width: 14px;
    height: 21px;
    border: 0px;
    padding: 0px;
}

.FlagTitleMid {
    background-image: url(midt.gif);
    position: absolute;
    text-align: center;
    line-height: 21px;
    top: 0px;
    left: 14px;
    width: 624px;
    height: 21px;
    border: 0px;
    padding: 0px;
}

.FlagTitleRight {
    background-image: url(rightt.gif);
    position: absolute;
    top: 0px;
    left: 638px;
    width: 14px;
    height: 21px;
    border: 0px;
    padding: 0px;
}

.FlagTabBox {
    background-image: url(dark.gif);
    border: 1px #6b7194 solid;
    padding: 6px 0px 6px 0px;
    font-family: arial;
    font-size: 9pt;
    color: #FFFFFF;
}

.ColumnHead {
    font-family: Arial, sans-serif;
    font-size: 9pt;
    font-weight: bold;
    color: #c8b97a;
    border-bottom: 1px solid #7b714a;
    padding-bottom: 4px;
}

/* ================================================================
   CONTENT WINDOW TITLE
   Flexible-width alternative to the fixed 3-div PNG title bar.
   Used on keys, flags, and wishlist pages inside .keys-container.
   Uses a CSS gradient that matches the EQ gold-brown parchment look.
   ================================================================ */

.content-window-title {
    margin: -20px -20px 12px;
    padding: 0 14px;
    background-image: url(midt.gif);
    background-repeat: repeat-x;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    color: #FFFFFF;
    font-weight: normal;
    height: 21px;
    line-height: 21px;
    box-sizing: border-box;
}

/* ================================================================
   SETTINGS OFFCANVAS — EQ Dark Theme
   ================================================================ */

.eq-settings {
    background-color: #1a1408;
    border-left: 2px solid #5a5030;
    width: 320px;
    max-width: 90vw;
}

.eq-settings .offcanvas-header {
    background-image: url(midt.gif);
    background-repeat: repeat-x;
    border-bottom: 1px solid #3a3218;
    padding: 0 14px;
    height: 21px;
    min-height: 21px;
    align-items: center;
}

.eq-settings .offcanvas-title {
    font-family: Arial, sans-serif;
    font-size: 9pt;
    color: #ffffff;
    font-weight: normal;
    line-height: 21px;
}

.eq-settings .btn-close {
    filter: invert(1) opacity(0.6);
    width: 10px;
    height: 10px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.eq-settings .offcanvas-body {
    padding: 14px;
    overflow-y: auto;
}

.permission-card {
    background-color: #100e08 !important;
    border: 1px solid #3a3218 !important;
    border-radius: 2px;
}

.permission-card .card-body {
    padding: 10px 14px;
}

.permission-card .form-check-label {
    color: #c8b97a;
    font-family: Arial, sans-serif;
    font-size: 9pt;
}

.permission-card .text-muted {
    color: #7b714a !important;
    font-size: 8pt;
}

.permission-card .form-check-input {
    background-color: #0e0c07;
    border-color: #4a4228;
}

.permission-card .form-check-input:checked {
    background-color: #7b714a;
    border-color: #9a8a50;
}

/* ================================================================
   BREADCRUMBS — EQ Themed
   ================================================================ */

nav[aria-label="breadcrumb"] .breadcrumb {
    background: transparent;
    padding: 2px 0;
    margin-bottom: 14px;
}

nav[aria-label="breadcrumb"] .breadcrumb-item a {
    color: #7b714a;
    text-decoration: none;
    font-size: 9pt;
    font-family: Arial, sans-serif;
}

nav[aria-label="breadcrumb"] .breadcrumb-item a:hover {
    color: #c8b97a;
}

nav[aria-label="breadcrumb"] .breadcrumb-item.active {
    color: #d4c5a0;
    font-size: 9pt;
    font-family: Arial, sans-serif;
}

nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
    color: #4a4228;
}

/* ================================================================
   NAV BUTTON ACTIVE STATE
   The current-page button uses [disabled]. Make it gold so it reads
   as "you are here" rather than looking broken/unavailable.
   ================================================================ */

.NavInner .eq-button[disabled] {
    color: #c8b97a !important;
    cursor: default;
}

/* ================================================================
   FLAGS PAGE
   ================================================================ */

.flags-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 16px;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    color: #aaa;
}

.flags-progress-bar-outer {
    flex: 1;
    max-width: 280px;
    height: 8px;
    background-color: #100e08;
    border: 1px solid #3a3218;
    border-radius: 2px;
    overflow: hidden;
}

.flags-progress-bar-inner {
    height: 100%;
    background: linear-gradient(to right, #5a4a1a, #c8b97a);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.flags-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.flag-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 8px;
    border-bottom: 1px solid #1e1a0e;
}

.flag-check {
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    font-size: 10pt;
}

.flag-zone {
    font-family: Arial, sans-serif;
    font-size: 9pt;
}

.flag-sub {
    font-family: Arial, sans-serif;
    font-size: 8pt;
}

.flag-row-earned .flag-check { color: #44dd66; }
.flag-row-earned .flag-zone  { color: #ffffff; }
.flag-row-earned .flag-sub   { color: #888; }

.flag-row-missing .flag-check { color: #333; }
.flag-row-missing .flag-zone  { color: #555; }
.flag-row-missing .flag-sub   { color: #333; }

@media (max-width: 768px) {
    .flags-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   EMPTY STATE
   ================================================================ */

.eq-empty-state {
    text-align: center;
    padding: 28px 20px;
    color: #7b714a;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    border-top: 1px solid #2a2210;
    margin-top: 4px;
}

.eq-empty-state a {
    color: #8aa3ff;
    text-decoration: none;
}

.eq-empty-state a:hover {
    color: #c8b97a;
    text-decoration: underline;
}

/* ================================================================
   WISHLIST TABLE
   Tighten up columns and make item links read distinctly.
   ================================================================ */

.wishlist-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #2a2210;
    vertical-align: middle;
}

.wishlist-table th {
    padding: 6px 12px;
    color: #c8b97a;
    font-weight: bold;
    border-bottom: 1px solid #7b714a;
    font-size: 9pt;
}

.wishlist-table a {
    color: #c8b97a;
    text-decoration: none;
}

.wishlist-table a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.wishlist-note {
    color: #888;
    font-size: 8.5pt;
    font-style: italic;
}

.wishlist-private {
    text-align: center;
    padding: 20px;
    color: #7b714a;
    font-style: italic;
    font-size: 9pt;
}

/* ================================================================
   KEYS GRID
   ================================================================ */

.keys-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.key-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid #1e1a0e;
    gap: 12px;
}

.key-row a {
    color: #c8b97a;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 9pt;
}

.key-row a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.key-id {
    color: #555;
    font-size: 8pt;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .keys-grid { grid-template-columns: 1fr; }
}

/* Enhanced Search Form Styling for Dark Theme */

/* Main search form container */
.p-3.p-md-4.mb-4.border.rounded-3.shadow-sm {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%) !important;
    border: 2px solid var(--border-color) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    position: relative;
    overflow: hidden;
}

/* Add subtle texture overlay */
.p-3.p-md-4.mb-4.border.rounded-3.shadow-sm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.02) 2px,
        rgba(255,255,255,0.02) 4px
    );
    pointer-events: none;
    z-index: 0;
}

/* Ensure form content is above the texture */
.p-3.p-md-4.mb-4.border.rounded-3.shadow-sm > * {
    position: relative;
    z-index: 1;
}

/* Enhanced floating labels */
.form-floating {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(123, 113, 74, 0.3);
    transition: all 0.3s ease;
}

.form-floating:hover {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-floating:focus-within {
    border-color: var(--accent-color);
    background: rgba(252, 199, 33, 0.1);
    box-shadow: 0 0 0 3px rgba(252, 199, 33, 0.15);
}

/* Enhanced form controls */
.form-control-lg {
    background-color: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-size: 18px !important;
    padding: 1.75rem 0.75rem 0.5rem !important;
    height: auto !important;
    font-weight: 500;
}

.form-control-lg:focus {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Enhanced floating labels */
.form-floating > label {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent-color) !important;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    font-weight: 600;
    background: transparent !important;
}

/* Enhanced search button */
.btn-primary.btn-lg {
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4a928 100%) !important;
    border: 2px solid var(--accent-color) !important;
    color: var(--bg-dark) !important;
    font-weight: bold !important;
    font-size: 18px !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    box-shadow:
        0 4px 15px rgba(252, 199, 33, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
        display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.btn-primary.btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary.btn-lg:hover {
    background: linear-gradient(135deg, #d4a928 0%, var(--hover-color) 100%) !important;
    border-color: #d4a928 !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 6px 20px rgba(252, 199, 33, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-primary.btn-lg:hover::before {
    left: 100%;
}

.btn-primary.btn-lg:active {
    transform: translateY(0) !important;
    box-shadow:
        0 2px 10px rgba(252, 199, 33, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced search results card */
.card.shadow-sm {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%) !important;
    border: 2px solid var(--border-color) !important;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
}

.card-header.bg-light {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(123, 113, 74, 0.2) 100%) !important;
    border-bottom: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 1rem 1.5rem !important;
}

.card-header h2 {
    color: var(--accent-color) !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Enhanced badge styling */
.badge.bg-secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4a928 100%) !important;
    color: var(--bg-dark) !important;
    font-weight: bold !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    text-shadow: none !important;
    font-size: 14px !important;
}

/* Enhanced table styling */
.table-striped.table-hover.align-middle {
    background-color: var(--bg-secondary) !important;
}

.table-light th {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(123, 113, 74, 0.3) 100%) !important;
    color: var(--accent-color) !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 1rem 1.5rem !important;
}

.table tbody tr {
    background-color: var(--bg-secondary) !important;
    transition: all 0.2s ease !important;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(123, 113, 74, 0.15) 0%, rgba(123, 113, 74, 0.08) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.table td {
    color: var(--text-primary) !important;
    padding: 1rem 1.5rem !important;
    border: none !important;
    vertical-align: middle !important;
}

/* Enhanced links in table */
.table td a {
    color: #d4b866 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.table td a:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 0 8px rgba(252, 199, 33, 0.5) !important;
}

/* Enhanced class badges */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--link-color) 0%, #6b8cff 100%) !important;
    color: white !important;
    font-weight: bold !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 12px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Loading state styling */
.spinner-border-sm {
    color: var(--bg-dark) !important;
}

/* Mobile responsiveness enhancements */
@media (max-width: 768px) {
    .form-control-lg {
        font-size: 16px !important;
    }

    .btn-primary.btn-lg {
        font-size: 16px !important;
        padding: 10px 25px !important;
    }

    .card-header h2 {
        font-size: 1.2rem !important;
    }

    .table td, .table th {
        padding: 0.75rem 1rem !important;
    }
}

/* Form validation states */
.form-control.is-invalid {
    border-color: #dc3545 !important;
}

.form-floating:has(.form-control.is-invalid) {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

/* Placeholder styling */
.form-control::placeholder {
    color: transparent !important;
}

/* Custom scrollbar for table container */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Animation for search results appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card.shadow-sm {
    animation: fadeInUp 0.5s ease-out;
}


