/* Settings Popup Styles */
.settings-button {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #2A2D3D;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.settings-button:hover {
    background: #3A3D4D;
}

.settings-button svg {
    width: 16px;
    height: 16px;
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}

.settings-popup {
    background-color: #1a1b26;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    color: #c0caf5;
    border: 1px solid #2A2D3D;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #2A2D3D;
    padding-bottom: 10px;
}

.settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    text-align: left;
}

.close-settings {
    background: none;
    border: none;
    color: #c0caf5;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

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

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

.settings-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #7aa2f7;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.settings-option label {
    font-size: 0.95rem;
}

.theme-buttons {
    display: flex;
    gap: 10px;
}

.theme-button {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #2A2D3D;
    background-color: #2A2D3D;
    color: #c0caf5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-button:hover {
    background-color: #3B4064;
}

.theme-button.active {
    background-color: #7aa2f7;
    color: #1a1b26;
    border-color: #7aa2f7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .settings-button {
        top: 5px;
        right: 5px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .settings-popup {
        width: 85%;
        padding: 15px;
    }
    
    .settings-header h2 {
        font-size: 1.3rem;
    }
    
    .settings-section h3 {
        font-size: 1rem;
    }
    
    .settings-option label {
        font-size: 0.9rem;
    }
    
    .theme-button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Mobile responsiveness for smaller screens */
@media (max-width: 480px) {
    nav ul li {
        margin: 0 8px;
    }
    
    section {
        padding: 15px;
        margin: 15px auto;
    }
    
    body {
        font-size: 16px;
    }
    
    .settings-popup {
        width: 90%;
        padding: 12px;
    }
    
    .theme-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .settings-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .settings-option label {
        margin-bottom: 5px;
    }
}