/* Boss Menu Styles */
.boss-menu-btn.minimap-button,
.dungeon-menu-btn.minimap-button,
.market-menu-btn.minimap-button {
    position: relative;
    font-size: 18px;
    width: 60px !important;
    height: 60px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 99998;
    overflow: visible !important;
}

.boss-menu-btn.minimap-button:hover,
.dungeon-menu-btn.minimap-button:hover,
.market-menu-btn.minimap-button:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: scale(1.1);
}

.boss-menu-btn.minimap-button:active,
.dungeon-menu-btn.minimap-button:active,
.market-menu-btn.minimap-button:active {
    background: transparent !important;
    transform: translateY(-50%) scale(0.95);
}

.boss-menu-btn.minimap-button img,
.dungeon-menu-btn.minimap-button img,
.market-menu-btn.minimap-button img {
    display: block;
    line-height: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Boss Modal (Dark Theme) */
.boss-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.boss-modal.active {
    display: flex;
}

.boss-content {
    background: #111111;
    border: 1px solid #333;
    border-radius: 8px;
    width: min(700px, 95vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    position: relative;
}

.boss-header {
    background: linear-gradient(180deg, #222 0%, #111 100%);
    border-bottom: 1px solid #444;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boss-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.boss-close img {
    width: 20px;
    height: 20px;
}

.boss-body {
    display: flex;
    flex-direction: row;
    padding: 15px;
    gap: 15px;
    height: 65vh; /* Fixed height for independent scrolling */
    min-height: 200px;
    max-height: calc(85vh - 60px); /* Fits inside modal */
}

.boss-tabs {
    display: flex;
    flex-direction: column;
    width: 150px;
    min-width: 150px;
    gap: 5px;
    border-right: 1px solid #333;
    padding-right: 15px;
    overflow-y: auto;
}

.boss-tab-btn {
    flex-shrink: 0;
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: bold;
}

.boss-tab-btn:hover {
    background: #333;
    color: #fff;
}

.boss-tab-btn.active {
    background: #555;
    color: #ff9900;
    border-color: #777;
}

.boss-info-panel {
    flex: 1;
    display: none;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto; /* Independent scroll for content */
    padding-right: 5px;
    max-height: 100%;
}

.boss-info-panel.active {
    display: flex;
}

.boss-image-container {
    width: 100%;
    height: 200px;
    min-height: 200px;
    flex-shrink: 0;
    background-image: url('../assets/icon/ui/backgroundboss.webp');
    background-size: 100% 100%;
    background-position: center;
    border: 1px solid #222;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.boss-image-container img {
    max-height: 120%;
    max-width: 120%;
    object-fit: contain;
}

.boss-details {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 4px;
}

.boss-detail-row {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.boss-detail-label {
    color: #ff9900;
    font-weight: bold;
}

.boss-detail-value {
    color: #fff;
    margin-left: 5px;
}

/* Boss Drops Grid */
.boss-drops-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    background: #0a0a0a;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #222;
}

.boss-drop-item {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: help;
    transition: transform 0.1s;
}

.boss-drop-item:hover {
    transform: scale(1.1);
    border-color: #666;
}

.boss-drop-item img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Removed old mobile layout since tabs are always horizontal now */

@media (max-width: 1644px) and (min-width: 769px) {
    .boss-menu-btn.minimap-button,
    .dungeon-menu-btn.minimap-button,
    .market-menu-btn.minimap-button {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .boss-menu-btn.minimap-button,
    .dungeon-menu-btn.minimap-button,
    .market-menu-btn.minimap-button {
        width: 45px !important;
        height: 45px !important;
    }
}

@media (max-width: 850px) and (max-height: 450px) {
    .boss-menu-btn.minimap-button,
    .dungeon-menu-btn.minimap-button,
    .market-menu-btn.minimap-button {
        width: 45px !important;
        height: 45px !important;
    }
    
    .boss-image-container {
        height: 120px;
        min-height: 120px;
    }
}

/* Activity Button and Glassmorphic Activity Modal styling */
.activity-menu-btn.minimap-button {
    position: relative;
    font-size: 18px;
    width: 60px !important;
    height: 60px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 99998;
    overflow: visible !important;
}

.activity-menu-btn.minimap-button:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: scale(1.1);
}

.activity-menu-btn.minimap-button:active {
    background: transparent !important;
    transform: scale(0.95);
}

.activity-menu-btn.minimap-button img {
    display: block;
    line-height: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


@media (max-width: 1644px) and (min-width: 769px) {
    .activity-menu-btn.minimap-button {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .activity-menu-btn.minimap-button {
        width: 45px !important;
        height: 45px !important;
    }
}

@media (max-width: 850px) and (max-height: 450px) {
    .activity-menu-btn.minimap-button {
        width: 45px !important;
        height: 45px !important;
    }
}
