/* ===== SIDEBAR LAYOUT ===== */
.sidebar {
    position: fixed;
    right: 0;
    top: 20px;
    bottom: 20px;
    width: 300px;
    background-color: #1e1e1e;
    border-radius: 8px 0 0 8px;
    padding: 20px;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    overflow-x: visible;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(320px);
}

.sidebar-content {
    position: relative;
    width: 100%;
}

/* ===== SIDEBAR TOGGLE AREA ===== */
.sidebar-toggle {
    position: fixed;
    right: 300px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: linear-gradient(180deg, #ff5722 0%, #e64a19 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.sidebar-toggle:hover {
    width: 6px;
    background: linear-gradient(180deg, #ff7043 0%, #ff5722 100%);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.5);
}

.show-toggle {
    position: fixed;
    right: 15px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: linear-gradient(180deg, #2196f3 0%, #1976d2 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
    display: none;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.show-toggle.visible {
    display: block;
}

.show-toggle:hover {
    width: 6px;
    background: linear-gradient(180deg, #42a5f5 0%, #2196f3 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.5);
}



/* ===== ACTIVE EVENTS ===== */
.active-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.active-event-card {
    background-color: #252525;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #ff9800;
    animation: pulse-border 2s infinite;
}

.active-event-card.world-boss {
    border-left-color: #ff5722;
}

.active-event-card.thrall {
    border-left-color: #2196f3;
}

.active-event-card.fieldboss {
    border-left-color: #9c27b0;
}

.active-event-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #e0a800;
}

.active-event-location {
    color: #bbb;
    margin-bottom: 10px;
}

.active-event-countdown {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff5722;
}

.no-active-events {
    color: #888;
    text-align: center;
    padding: 20px 0;
}

#no-active-events {
    display: block;
    color: #888;
    text-align: center;
    padding: 20px 0;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse-border {
    0% { border-left-color: rgba(255, 152, 0, 1); }
    50% { border-left-color: rgba(255, 152, 0, 0.5); }
    100% { border-left-color: rgba(255, 152, 0, 1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        display: none;
        background-color: #1e1e1e !important;
        color: #f0f0f0 !important;
    }
    
    .sidebar * {
        background-color: inherit;
        color: inherit;
    }
    
    .sidebar h2 {
        color: #e0a800 !important;
    }
    
    .sidebar-toggle {
        position: fixed;
        right: 300px;
        top: 20px;
        bottom: 20px;
        width: 4px;
        background: linear-gradient(180deg, #ff5722 0%, #e64a19 100%);
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
        display: none;
        border-radius: 0 2px 2px 0;
        box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
    }
    
    .sidebar-toggle.mobile-visible {
        display: block;
    }
    
    .show-toggle {
        position: fixed;
        right: 15px;
        top: 20px;
        bottom: 20px;
        width: 4px;
        display: block !important;
        border-radius: 2px 0 0 2px;
        box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    }
}