@import url('https://fonts.googleapis.com/css?family=Prompt:100,200,300,400,500,600,700,800,900&display=swap');

:root {
    font-family: 'Prompt', sans-serif;
    --bg-color-dark: #131314;
    --surface-color-dark: #1e1f20;
    --primary-text-color-dark: #ccc;
    --secondary-text-color-dark: #9b9b9b;
    --glass-bg-dark: rgba(30, 31, 32, 0.75);
    --border-color-dark: rgba(255, 255, 255, 0.1);
    --bg-color-light: #f0f4f9;
    --surface-color-light: #ffffff;
    --primary-text-color-light: #1f1f1f;
    --secondary-text-color-light: #5f6368;
    --glass-bg-light: rgba(255, 255, 255, 0.6);
    --border-color-light: rgba(0, 0, 0, 0.1);
    --accent-blue: rgba(86, 154, 231, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background-color: transparent;
}
::-webkit-scrollbar-thumb {
    background: #656667;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #818181;
}
.sidebar-nav::-webkit-scrollbar {
    width: 11px;
    background-color: transparent;
    transition: width 0.5s ease;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 9999px;
    border: 3px solid transparent;
    background-clip: content-box;
}
.sidebar-nav:hover::-webkit-scrollbar-thumb {
    background-color: #656667;
}
.sidebar-nav:hover::-webkit-scrollbar-thumb:hover {
    background-color: #818181;
}

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    transition: background-color 0.3s, color 0.3s;
}
body.dark-mode {
    --bg-color: var(--bg-color-dark);
    --surface-color: var(--surface-color-dark);
    --primary-text-color: var(--primary-text-color-dark);
    --secondary-text-color: var(--secondary-text-color-dark);
    --glass-bg: var(--glass-bg-dark);
    --border-color: var(--border-color-dark);
}
body.light-mode {
    --bg-color: var(--bg-color-light);
    --surface-color: var(--surface-color-light);
    --primary-text-color: var(--primary-text-color-light);
    --secondary-text-color: var(--secondary-text-color-light);
    --glass-bg: var(--glass-bg-light);
    --border-color: var(--border-color-light);
}
body.dark-mode .logo {
    background-image: url(../../images/logo-pic.png);
}
body.light-mode .logo {
    background-image: url(../../images/x.png);
}

.app-container {
    display: flex;
    height: 100%;
}
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--primary-text-color);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar {
    width: 240px;
    background-color: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0.35rem;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    flex-shrink: 0;
}
.sidebar-header {
    height: 56px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid rgb(0 0 0 / 0%);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 0.5rem;
    justify-content: center;
}
.logo {
    display: inline-block;
    width: 70px;
    height: 60px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    overflow: hidden;
}
.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    padding-left: 10px;
}
.fa-icon {
    font-size: auto;
    margin-right: 0.6rem;
}
.sidebar-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-left: 50%;
    margin-right: 50%;
}
.sidebar-footer a {
    text-decoration: none;
}
.sidebar .nav-text {
    font-family: 'Prompt', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}
.sidebar a {
    text-decoration: none;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    height: 40px;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-radius: 9999px;
    border: none;
    background-color: transparent;
    color: var(--primary-text-color);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}
.nav-item.active,
.nav-item:not(.nav-item-active):hover {
    background-color: #3b3c3e;
}
.nav-item-active {
    background-color: var(--accent-blue);
    color: var(--primary-text-color);
}
.chat-interface {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    min-width: 0;
}
.chat-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}
.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.profile {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
.profile-dropdown.show {
    cursor: default;
}
.profile-name {
    color: var(--primary-text-color);
    font-size: 0.9rem;
    display: none;
}
.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 100%;
    background-color: #202020;
    display: grid;
    place-items: center;
    font-weight: 500;
    font-size: 1.2rem;
    color: #fff;
    text-transform: uppercase;
}
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background-color: #2e2f30;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.profile-avatar.large {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}
.dropdown-username {
    font-weight: 500;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-text-color);
    transition: background-color 0.2s;
}
.dashboard-container {
    margin-top: 3.5rem;
    padding: 1rem 2.5rem;
    align-items: center;
    text-align: center;
    flex-direction: column;
}
.chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
}
.welcome-view {
    margin: auto;
    text-align: center;
}
.welcome-gradient-text .hello {
    font-size: 2rem;
    font-weight: 500;
    transition: opacity 0.5s ease;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.welcome-gradient-text .prompt-question {
    display: block;
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.prompt-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 800px;
    margin-top: 3rem;
}
.suggestion-card {
    width: 250px;
    height: 320px;
    background-color: var(--surface-color);
    padding: 0.5rem;
    border-radius: 30px;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: transform 0.2s, background-color 0.2s;
}
.suggestion-card:hover {
    background-color: #2a2b2c;
    transform: translateY(-5px);
}
.no-player {
    background-color: var(--surface-color);
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 5rem;
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: opacity 0.3s, visibility 0.3s;
}
body.sidebar-mobile-open .mobile-overlay {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-toggle {
    display: none;
}
.character-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 900px;
    margin-bottom: 2rem;
}
.character-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    text-align: center;
    border: 1px solid transparent;
}
.character-card:hover {
    border-color: var(--border-color);
    transform: translateY(-5px);
}
.char-sprite-container {
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.char-sprite {
    max-height: 100%;
    max-width: 100%;
    image-rendering: pixelated;
}
.character-card .char-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-text-color);
    margin-bottom: 0.5rem;
}
.character-card .char-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--secondary-text-color);
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    z-index: 1000;
}
.modal-overlay.show {
    display: flex;
}
.modal-container {
    background-color: var(--surface-color, #1e1f20);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}
.modal-overlay.show .modal-container {
    transform: scale(1);
    opacity: 1;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: -1rem;
}
.modal-header h3 {
    margin: 0;
    color: var(--primary-text-color, #ccc);
}
.modal-close-btn {
    background: none;
    border: none;
    color: var(--primary-text-color, #ccc);
    font-size: 2rem;
    cursor: pointer;
}
.tab-link {
    font-family: 'Prompt', sans-serif;
    background: none;
    border: none;
    color: var(--secondary-text-color, #9b9b9b);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
}
.tab-link.active {
    color: var(--primary-text-color, #ccc);
    border-bottom-color: var(--accent-blue, #569ae7);
}

.item-entry:hover {
    background-color: var(--hover-bg, rgba(255, 255, 255, 0.05));
}
.item-entry img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 4px;
    flex-shrink: 0;
}
.item-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-text-color, #ccc);
}
.item-amount {
    font-size: 0.7rem;
    color: var(--secondary-text-color, #9b9b9b);
}
.item-name,
.item-amount {
    margin-bottom: 0.1rem;
}
.filter-btn {
    background-color: var(--surface-color, #1e1f20);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    color: var(--secondary-text-color, #9b9b9b);
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Prompt', sans-serif;
    transition: all 0.2s ease;
}
.filter-btn:hover {
    background-color: var(--hover-bg, rgba(255, 255, 255, 0.05));
    border-color: var(--accent-blue, #569ae7);
}
.filter-btn.active {
    background-color: var(--accent-blue, #569ae7);
    color: #fff;
    border-color: var(--accent-blue, #569ae7);
}

.item-search-input {
    background-color: var(--surface-color, #1e1f20);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    color: var(--primary-text-color, #ccc);
    padding: 6px 12px;
    border-radius: 9999px;
    font-family: 'Prompt', sans-serif;
    margin-right: 1rem;
}
.item-search-input:focus  {
    outline: none;
}
.hidden {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 100;
        transform: translateX(-100%);
    }
    body.sidebar-mobile-open .sidebar {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .profile-name {
        display: none;
    }
    .chat-header {
        justify-content: space-between;
        position: fixed;
        width: 100%;
        background-color: var(--bg-color);
    }
    body.sidebar-mobile-open .chat-interface {
        transform: translateX(240px);
    }
    .chat-messages-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .prompt-suggestions {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 769px) {
    .sidebar {
        width: 240px;
    }
}
@media (hover: none) and (pointer: coarse) {
    .nav-item,
    .suggestion-card,
    .menu-toggle,
    .profile,
    .modal-overlay, .confirm-modal-box, .sidebar-footer {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }
}

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
    min-height: 0;
}

#item-list-view,
#item-details-view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

#item-details-view {
    display: none;
}

.modal-controls-header {
    flex-shrink: 0;
    padding: 0.5rem 0.5rem;
}

.modal-tabs {
    border-bottom: none;
    margin-bottom: 0;
}

.item-filters-wrapper {
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.item-filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.modal-scroll-content {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

.tabs-wrapper .modal-tab-content {
    display: none;
}
.tabs-wrapper .modal-tab-content.active {
    display: block;
}

.item-entry {
    transition: opacity 0.3s ease, max-height 0.4s ease, padding 0.3s ease, margin 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 9999px;
    cursor: pointer;
}

.item-entry.is-hidden {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
}

.no-item-found-msg {
    text-align: center;
    color: var(--secondary-text-color);
    padding: 2rem;
    display: none;
}

#item-details-view .modal-scroll-content {
    padding: 1rem 1.5rem;
}

.back-btn {
    font-family: 'Prompt', sans-serif;
    display: inline-flex;
    align-items: center;
    background: none; border: none;
    color: var(--secondary-text-color);
    cursor: pointer; font-size: 0.9rem;
    padding: 0;
    margin-left: 1rem;
}
.back-btn:hover { color: var(--primary-text-color); }
.back-btn .material-symbols-outlined { font-size: 1rem; margin-right: 0.25rem; }

.item-details-header { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-bottom: 1rem;
}
#details-item-img { width: 50px; height: 50px; background-color: rgba(0,0,0,0.2); border-radius: 8px; }
#details-item-name { margin: 0; font-size: 0.9rem; font-weight: 500; }
.item-details-body { display: flex; flex-direction: column; gap: 0.5rem; }
.item-details-body p { margin: 0; font-size: 0.75rem; color: var(--secondary-text-color); }
.item-details-body p strong { color: var(--primary-text-color); font-weight: 500; min-width: 120px; display: inline-block; }

.item-name.is-enchanted,
#details-item-name.is-enchanted {
    font-weight: 500;
}

.is-enchanted.grade-1 { color: #a8ed93; }
.is-enchanted.grade-2 { color: #8ab4f8; }
.is-enchanted.grade-3 { color: #ffd700; }
.is-enchanted.grade-4 { color: #f28b82; }

.item-options-divider { border: 0; height: 1px; background-color: var(--border-color); margin: 1rem 0; }
.item-option { color: #8ab4f8 !important; }
.item-option strong { color: var(--secondary-text-color) !important; }

.character-card {
    position: relative;
}

.character-card {
    position: relative;
}

.status-indicator {
    position: absolute;
    left: 50;
    right: 50;
    bottom: 12px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    border: none;
    background-color: rgba(0,0,0,0.2);
}

.status-indicator.online {
    background-color: #4CAF50;
}

.status-indicator.offline {
    background-color: #6c757d;
}

.modal-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header .status-indicator {
    position: static;
    top: auto;
    right: auto;
}

.modal-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-top: 1px solid var(--border-color);
}

.footer-stat-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-left: 1rem;
}

.modal-footer-stats #zeny-stat {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffd700;
}
.modal-footer-stats #zeny-stat b {
    color: #fff;
    margin-right: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    color: var(--secondary-text-color);
}

.stat-item .material-symbols-outlined {
    font-size: 1.1rem;
}

.stat-item b {
    color: var(--primary-text-color);
    font-weight: 600;
}

.item-actions-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.item-actions-footer .item-price {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.item-actions-footer .item-price .total-price-label {
    color: #ffd700;
}

.sell-btn {
    font-family: 'Prompt', sans-serif;
    background-color: #c94444;
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
    height: 34px;
    display: inline-flex;
    align-items: center;
}
.sell-btn:hover {
    background-color: #e04a4a;
}
.sell-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.item-entry.is-pending {
    opacity: 0.6;
    position: relative;
}

.item-entry.is-pending::after {
    content: "กำลังตรวจสอบ";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 400;
    color: #ffc107;
    background-color: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 10px;
}

.sell-btn-secondary {
    font-family: 'Prompt', sans-serif;
    background-color: transparent;
    color: var(--secondary-text-color);
    border: 1px solid var(--border-color);
    padding: 0 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    height: 34px;
    display: inline-flex;
    align-items: center;
}

.sell-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-text-color);
    border-color: var(--secondary-text-color);
}

#sell-quantity-input {
    font-family: 'Prompt', sans-serif;
    width: 70px;
    height: 34px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--primary-text-color);
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

#sell-quantity-input::-webkit-outer-spin-button,
#sell-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#sell-quantity-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.sell-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-modal-overlay.show {
    opacity: 1;
}

.confirm-modal-box {
    width: 90%;
    max-width: 300px;
    background-color: var(--surface-color);
    padding: 1.5rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.confirm-modal-overlay.show .confirm-modal-box {
    transform: scale(1);
}

.confirm-modal-box p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    color: var(--primary-text-color);
}

.confirm-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-btn {
    font-family: 'Prompt', sans-serif;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-btn-confirm {
    background-color: var(--accent-blue);
    color: #fff;
}
.modal-btn-confirm:hover {
    filter: brightness(1.1);
}

.modal-btn-cancel {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-text-color);
}
.modal-btn-cancel:hover {
    background-color: var(--border-color);
    color: var(--primary-text-color);
}

.item-details-header .item-name-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pending-status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffc107;
    padding: 3px 10px;
    border-radius: 10px;
}

.item-filters-wrapper.hidden {
    display: none;
}

.tabs-and-zeny-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-color);
}

#zeny-stat {
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 500;
}
#zeny-stat b {
    color: #fff;
}

.confirm-modal-box.is-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.confirm-modal-box.is-loading .confirm-modal-actions {
    display: none;
}

.confirm-modal-box.is-loading p {
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.modal-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    margin-bottom: 1rem;
}
.modal-controls-header .item-search-input {
    width: 89px;
}

.inventory-main-content {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.item-filter-sidebar {
    width: 100px;
    flex-shrink: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.item-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.item-filter-buttons .filter-btn {
    width: 100%;
    justify-content: center;
}

.inventory-main-content .modal-scroll-content {
    padding-bottom: 1rem;
    margin-right: 0.5rem;
}

.vip-badge {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--primary-text-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 9999px;
    margin-right: 0.2rem;
}

.dropdown-item-static {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    color: var(--primary-text-color);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}
.dropdown-item-static b {
    color: #ffd700;
    font-weight: 500;
}
.dropdown-divider {
    border: 0;
}

/* --- Donate Page Styles --- */

.donate-card {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.donate-card.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.donate-card h3 {
    font-size: 1.8rem;
    margin: 1rem 0;
    color: var(--primary-text-color);
}

.donate-card p {
    color: var(--accent-blue);
    font-weight: 500;
}