/* Custom styles */
.card {
    font-size: 0.75rem;
}

/* Chart.js zoom plugin Safari compatibility fix */
canvas.chart-zoomable {
    touch-action: pan-y !important;
}

/* Ensure charts respond to mouse events properly in Safari */
.chart-container canvas {
    cursor: crosshair;
}

.table {
    font-size: 0.75rem;
    margin-top: 1rem;
}

.table th {
    background-color: #212529;
    color: #fff;
}

.table td {
    vertical-align: middle;
}

pre {
    font-size: 0.6rem;
}

/* Basic list styling */
.list-group-item {
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.list-group-item.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Shadow selector styling */
#shadow-selector {
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#shadow-name {
    background-color: #2c3034;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#shadow-name:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Fix z-index layering for dropdown menus in group cards */
.group-card {
    position: relative;
}

.group-card .dropdown {
    position: relative;
    z-index: 100;
}

.group-card .dropdown-menu {
    position: absolute !important;
    z-index: 1060 !important;
}

.group-card .dropdown.show {
    z-index: 1050;
}

.group-card .dropdown-menu.show {
    z-index: 1070 !important;
}

/* Ensure the entire group card elevates when dropdown is active */
.group-card:has(.dropdown.show) {
    z-index: 1000;
}

/* Fallback for browsers that don't support :has() */
.group-card.dropdown-active {
    z-index: 1000;
}
