/* Layer Panel Styles */
.layer-panel {
    margin-top: 10px;
}

.layer-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
}

.layer-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.layer-edit-icon {
    margin-right: 8px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.layer-item:last-child {
    border-bottom: none;
}

.layer-item:hover {
    background-color: #e9ecef;
}

.layer-item:hover .layer-edit-icon {
    opacity: 0.8;
}

.layer-item.selected {
    background-color: #007bff;
    color: white;
}

.layer-item.selected:hover {
    background-color: #0056b3;
}

.layer-item.selected .layer-edit-icon {
    opacity: 0.9;
}

.layer-color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.layer-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.layer-name {
    font-weight: 500;
}

.layer-params {
    font-size: 11px;
    opacity: 0.7;
    color: inherit;
}

.layer-item.selected .layer-params {
    opacity: 0.9;
}

.layer-editor-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.layer-editor-header .layer-color-indicator {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.layer-editor-header span {
    font-weight: 500;
    font-size: 14px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1001;
    top: 20px;
    right: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#field-points circle {
    cursor: pointer;
}

.svg-stack {
    margin: 0;
    justify-content: flex-start;
    align-items: flex-start;
}
