/* Settings Cog Button */
#settings-cog {
    position: absolute;
    top: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#settings-cog:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

#settings-cog i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

/* Settings Panel */
#settings-panel {
    position: fixed;
    top: 150px;
    right: -350px;
    width: 320px;
    background-color: rgba(20, 20, 30, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1999;
    transition: right 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#settings-panel.show {
    right: 20px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

#settings-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

#settings-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.settings-content {
    padding: 20px;
}

.settings-group {
    margin-bottom: 20px;
}

.settings-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}

.settings-group select {
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.settings-group select option {
    background-color: #2a2a3a;
    color: #fff;
}

.settings-group input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.settings-group input[type="range"] {
    width: 100%;
    cursor: pointer;
}

#leaf-count-display {
    font-weight: bold;
    color: #4CAF50;
}

#leaf-count-max {
    font-weight: bold;
    color: #888;
}

.more-leaves-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    border-radius: 5px;
    color: #f44336;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.more-leaves-btn:hover {
    background-color: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

.more-leaves-btn.active {
    background-color: rgba(244, 67, 54, 0.5);
    border-color: #f44336;
    color: #fff;
    font-weight: bold;
}
