/* Event Sidebar Styles */
#sidebar-event-content {
    background: rgba(30, 41, 59, 0.4);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-step {
    background: var(--glass-bg, rgba(20, 30, 40, 0.8));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.event-step:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.event-step h4 {
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

/* Collapsible Header Text Fix */
.collapsible-header h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* max-width removed to allow flex to handle width */
    font-size: 0.85rem;
    line-height: 1.2;
    margin: 0;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
}

.collapsible-header:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(0, 243, 255, 0.2);
}

.collapsible-header .arrow {
    display: none !important;
}

/* Sidebar Inputs */
.sidebar input[type="text"],
.sidebar input[type="number"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sidebar input[type="text"]:focus,
.sidebar input[type="number"]:focus {
    border-color: var(--primary, #3b82f6);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

/* Sidebar Buttons */
.sidebar button {
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, filter 0.2s;
    border: none;
}

.sidebar button:hover {
    filter: brightness(1.2);
}

.sector-label-icon div {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    font-family: 'Inter', sans-serif;
}

#draw-helper {
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Custom Scrollbar for Event Sidebar */
#sidebar-event-content::-webkit-scrollbar {
    width: 4px;
}

#sidebar-event-content::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar-event-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}