/* Font Face Declarations */
@font-face {
    font-family: 'Bender';
    src: url('/fonts/bender.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bender';
    src: url('/fonts/bender-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* Tarkov Community Design System */
    --font-primary: "Bender", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --background: #0b0b0c;
    --background-secondary: #111213;
    --background-tertiary: #161717;
    --header-bg: #000;
    --header-text: #9a8866;
    --subtext: #aeaeb0;
    --subtext-alt: #4e4636;
    --text: #9a8866;
    --text-highlight: #e6bc6a;
    --text-alt-highlight: #b89e6a;
    --post-bg: #111212;
    --post-bg-secondary: #0d0e0e;
    --post-border: rgba(232, 190, 107, 0.8);
    --striped-pattern: repeating-linear-gradient(-45deg, rgba(78, 70, 54, 0.01), rgba(78, 70, 54, 0.01) 5px, rgba(154, 136, 102, 0.1) 5px, rgba(154, 136, 102, 0.1) 10px);
}

body {
    font-family: var(--font-primary);
    background: var(--background-tertiary);
    color: var(--text);
    min-height: 100vh;
    height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Custom Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--text-highlight) var(--post-bg-secondary);
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: var(--post-bg-secondary);
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
    background: var(--text-highlight);
    border-radius: 6px;
    border: 2px solid var(--post-bg-secondary);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--text-alt-highlight);
}

*::-webkit-scrollbar-corner {
    background: var(--post-bg-secondary);
}

/* Main Header */
.main-header {
    width: 100%;
    background: var(--header-bg);
    border-bottom: 1px solid var(--post-border);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(199, 170, 106, 0.1);
    border: 1px solid rgba(199, 170, 106, 0.3);
    border-radius: 6px;
}

.user-welcome {
    color: var(--subtext);
    font-size: 14px;
}

.user-welcome #user-display-name {
    color: var(--text-highlight);
    font-weight: 600;
}

/* App Container */
.app-container {
    display: flex;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: var(--post-bg);
    border-right: 1px solid var(--post-border);
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

/* Sidebar Sections */
.sidebar-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--post-border);
}

.sidebar-section-kappa-progress {
    padding-top: 0px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-highlight);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.sidebar-section-title i {
    font-size: 0.85rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    background: var(--header-bg);
    border-top: 1px solid var(--post-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-action-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.complete-all-action {
    background: #4CAF50;
    color: #fff;
}

.complete-all-action:hover {
    background: #43a047;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.reset-action {
    background: #dc2626;
    color: #fff;
}

.reset-action:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Content with Sidebar Layout */
.content-with-sidebar {
    display: flex;
    gap: 24px;
    height: 100%;
}

.main-quests-area {
    flex: 1;
    min-width: 0;
}

/* Right Sidebar */
.right-sidebar {
    width: 320px;
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    border-radius: 8px;
    flex-shrink: 0;
    overflow-y: auto;
}

.right-sidebar-content {
    padding: 20px;
}

.right-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-highlight);
    margin-bottom: 16px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--post-border);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    color: var(--subtext);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-link.active {
    background: var(--text-highlight);
    border-color: var(--text-highlight);
    color: var(--header-bg);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--header-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--header-bg);
    color: var(--text-highlight);
}

.dropdown-item i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

/* User dropdown in header */
.user-dropdown {
    position: relative;
}

.user-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.user-avatar-link:hover {
    opacity: 0.8;
}

.user-avatar-header {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-highlight);
}

.default-avatar-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text-highlight);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    border: 2px solid var(--text-highlight);
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: 0.5px;
    margin: 0;
}

.level-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.level-sections-inline {
    display: flex;
    gap: 12px;
}

.level-sections-inline .level-section {
    flex: 1;
}

.level-section label {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-highlight);
}

.level-input {
    background: var(--post-bg);
    border: 2px solid var(--post-border);
    color: var(--text-highlight);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    height: 44px;
    text-align: center;
}

.level-input:focus {
    outline: none;
    border-color: var(--text-highlight);
}

.progress-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.progress-bar {
    background: var(--post-bg-secondary);
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid var(--post-border);
    width: 100%;
    min-width: 200px;
}

.progress-fill {
    background: var(--text-highlight);
    height: 100%;
    width: 0%;
    border-radius: 8px;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-highlight);
}

/* Quest Mode Toggle Section */
.quest-mode-section {
    display: flex;
    align-items: center;
}

.quest-mode-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.quest-mode-checkbox {
    display: none;
}

.quest-mode-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: var(--post-border);
    border-radius: 13px;
    border: 2px solid var(--post-border);
}

.quest-mode-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--post-bg);
}

.quest-mode-checkbox:checked + .quest-mode-slider {
    background-color: var(--text-highlight);
    border-color: var(--text-highlight);
}

.quest-mode-checkbox:checked + .quest-mode-slider::before {
    transform: translateX(24px);
    background-color: var(--post-bg-secondary);
}

.quest-mode-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--subtext);
}

.quest-mode-toggle:hover .quest-mode-label {
    color: var(--text);
}

.quest-mode-toggle:hover .quest-mode-slider {
    border-color: var(--text-highlight);
}

/* Main content styling is now handled by .main-content */

/* Map Overview Section */
.map-overview {
    margin-bottom: 0;
}

.overview-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--post-bg-secondary);
    border: 1px solid var(--post-border);
    border-radius: 6px;
    font-size: 0.85rem;
    gap: 12px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--subtext);
    font-weight: 500;
    flex-shrink: 0;
}

.stat-value {
    font-weight: 600;
    color: var(--text-highlight);
    font-size: 0.85rem;
    text-align: right;
}

/* Keys List Styling */
.keys-list-item, .fir-list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
}

.keys-list, .fir-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
}

.key-item {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--subtext);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.fir-item {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--subtext);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Map Tabs Section */
.map-tabs-section {
    margin-bottom: 20px;
}

.map-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--post-border);
    overflow-x: auto;
}

.map-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--subtext);
    padding: 12px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.map-tab:hover {
    background: var(--post-bg-secondary);
    color: var(--text-highlight);
}

.map-tab.active {
    background: var(--post-bg-secondary);
    color: var(--text-highlight);
}



.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.quest-card {
    background: var(--post-bg);
    border: 1px dashed var(--post-border);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.quest-card.completed {
    opacity: 0.6;
    border: 1px dashed var(--subtext-alt);
}

/* Quest card colors removed - using neutral colors for all cards */

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.quest-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-highlight);
    flex: 1;
    line-height: 1.3;
}

.quest-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.quest-trader {
    font-size: 0.9rem;
    color: var(--subtext);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

.quest-objectives {
    margin-top: 12px;
    margin-bottom: 12px;
}

.quest-objectives-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: var(--post-bg);
    border: 1px dashed var(--post-border);
    border-radius: 6px;
}

.quest-objectives-header:hover {
    background: var(--post-bg-secondary);
}

.quest-objectives-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.objectives-toggle-icon {
    font-size: 0.75rem;
    color: var(--subtext);
}

.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 1;
    margin-top: 12px;
}

.objectives-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.objectives-list li {
    font-size: 0.85rem;
    color: var(--subtext);
    line-height: 1.4;
    padding-left: 16px;
    position: relative;
}

.objectives-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-highlight);
    font-weight: bold;
}

.quest-items {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--post-border);
}

.quest-items-title {
    font-size: 0.8rem;
    color: var(--subtext);
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.item-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--subtext);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    white-space: nowrap;
}

.item-tag.markers,
.item-tag.jammers,
.item-tag.cameras,
.item-tag.key,
.item-tag.fir {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--subtext);
}

/* Quest Unlocks Section */
.quest-unlocks {
    margin-top: 8px;
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--post-border);
}

.quest-unlocks-title {
    font-size: 0.8rem;
    color: var(--text-alt-highlight);
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.unlocks-text {
    font-size: 0.8rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.3;
}

.unlock-link {
    color: var(--text-highlight);
    text-decoration: none;
    font-style: normal;
    font-weight: 500;
}

.unlock-link:hover {
    text-decoration: underline;
}

.quest-locked {
    background: #dc2626;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quest-locked i {
    font-size: 0.9rem;
}

.wiki-link,
.quest-images-btn,
.quest-fix-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    width: 40px;
    height: 24px;
    background: var(--post-bg);
    border: 1px solid var(--post-border);
    border-radius: 6px;
    color: var(--text-highlight);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 4px;
}

.wiki-link:hover,
.quest-images-btn:hover,
.quest-fix-btn:hover {
    background: var(--text-highlight);
    border-color: var(--text-alt-highlight);
    color: var(--header-bg);
}

.quest-level-req {
    background: var(--post-bg-secondary);
    color: var(--subtext);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid var(--post-border);
    white-space: nowrap;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    font-size: 1.1rem;
    opacity: 0.7;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.complete-btn {
    background: #22c55e;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: auto;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    flex-shrink: 0;
}

.complete-btn:hover {
    background: #16a34a;
}

.uncomplete-btn {
    background: #ef4444;
    color: #ffffff;
}

.uncomplete-btn:hover {
    background: #dc2626;
}

.completed-quest {
    opacity: 0.8;
}

.completed-quest .quest-name {
    color: var(--text-highlight);
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 16px;
        padding: 12px 16px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--post-border);
        padding: 16px;
    }
    
    .sidebar-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .level-section {
        flex-direction: row;
        align-items: center;
    }
    
    .progress-section {
        min-width: 200px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .content-with-sidebar {
        flex-direction: column;
    }
    
    .right-sidebar {
        width: 100%;
        order: -1;
    }
    
    .quests-grid {
        grid-template-columns: 1fr;
    }
    
    .map-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
}




/* Reset Button Styles */

.reset-btn {
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #dc2626;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reset-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Report Bug button - red theme */
.report-bug {
    background: #f44336;
    border-color: #f44336;
}

.report-bug:hover {
    background: #d32f2f;
    border-color: #d32f2f;
}

/* Request Feature button - green theme */
.request-feature {
    background: #4CAF50;
    border-color: #4CAF50;
}

.request-feature:hover {
    background: #43a047;
    border-color: #43a047;
}

.collector-btn {
    background: #9a8866;
    color: var(--header-bg);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.collector-btn:hover {
    background: #8a7856;
}

.kappa-overview-btn {
    background: #9a8866;
    color: var(--header-bg);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kappa-overview-btn:hover {
    background: #8a7856;
}

/* Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.dialog-overlay.show {
    display: flex;
}

.dialog-content {
    background: var(--post-bg);
    border: 2px solid var(--post-border);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.dialog-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--post-border);
    background: var(--header-bg);
    border-radius: 8px 8px 0 0;
}

.dialog-header h3 {
    color: var(--header-text);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.dialog-body {
    padding: 24px;
}

.dialog-body p {
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.6;
}

.dialog-body ul {
    margin: 16px 0;
    padding-left: 20px;
    color: var(--subtext);
}

.dialog-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.dialog-body strong {
    color: var(--text-highlight);
    font-weight: 700;
}

.dialog-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--post-border);
    background: var(--post-bg-secondary);
    border-radius: 0 0 8px 8px;
}

.dialog-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 100px;
}

.cancel-btn {
    background: var(--post-bg);
    color: var(--text);
    border-color: var(--post-border);
}

.cancel-btn:hover {
    background: var(--post-bg-secondary);
    border-color: var(--post-border);
}

.confirm-btn {
    background: var(--text-highlight);
    color: var(--header-bg);
    border-color: var(--text-highlight);
}

.confirm-btn:hover {
    background: var(--text-alt-highlight);
    border-color: var(--text-alt-highlight);
}

/* Quest name display in dialog */
.quest-name-display {
    font-size: 1.1rem;
    color: var(--text-highlight);
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--post-bg-secondary);
    border-left: 3px solid var(--text-highlight);
    border-radius: 4px;
}

/* Mobile Responsiveness for Dialog */
@media (max-width: 768px) {
    .dialog-content {
        width: 95%;
        margin: 20px;
    }
    
    .dialog-header,
    .dialog-body,
    .dialog-footer {
        padding: 16px;
    }
    
    .dialog-footer {
        flex-direction: column;
    }
    
    .dialog-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .dialog-btn:last-child {
        margin-bottom: 0;
    }
}

/* Footer Status Bar */
.footer-statusbar {
    width: 100%;
    background: var(--header-bg);
    border-top: 1px solid var(--post-border);
    padding: 8px 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-statusbar p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--subtext);
}

.footer-statusbar a {
    color: var(--text-highlight);
    text-decoration: none;
    font-weight: 600;
}

.footer-statusbar a:hover {
    color: var(--text-alt-highlight);
    text-decoration: underline;
}

/* Collector Items Styles */
.collector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.collector-item {
    background: var(--post-bg-secondary);
    border: 2px solid var(--post-border);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.collector-item:hover {
    transform: translateY(-2px);
    border-color: var(--text-highlight);
    box-shadow: 0 3px 8px rgba(199, 170, 106, 0.3);
}

.collector-item.found {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.collector-item.needed {
    border-color: var(--post-border);
}

.collector-item-image {
    width: 100%;
    height: 70px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 4px;
}

.collector-item-name {
    font-size: 0.65rem;
    color: var(--text);
    text-align: center;
    line-height: 1.1;
    font-weight: 500;
    max-height: 2.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.collector-item-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-highlight);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.collector-item-check {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Fix Quest Card Styles */
.fix-quest-card {
    background: var(--post-bg);
    border: 2px solid var(--post-border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    gap: 8px;
    transition: all 0.2s;
}

.fix-quest-card:hover {
    border-color: var(--text-highlight);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fix-quest-card.completed {
    opacity: 0.6;
    border-color: var(--success);
}

.fix-quest-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-highlight);
    line-height: 1.4;
    word-wrap: break-word;
    width: 100%;
    margin-bottom: 8px;
}

.fix-quest-card .level-badge,
.fix-quest-card .trader-badge,
.fix-quest-card .map-badge,
.fix-quest-card .kappa-badge {
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
}

.fix-quest-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    background: var(--text-highlight);
    border: none;
    border-radius: 6px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}

.fix-quest-btn:hover {
    background: var(--text-alt-highlight);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .collector-split-container {
        grid-template-columns: 1fr !important;
    }
    
    .collector-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }
}
