/* Settings Window Styles (New) */
.settings-content {
    flex-direction: row;
    background-color: #1a1a1a; /* Lighter than app window content for settings */
}

.settings-sidebar {
    width: 250px;
    background-color: #282828;
    padding: 15px 0;
    border-right: 1px solid #3a3a3a;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevent shrinking */
}

.settings-category {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    font-size: 15px;
    color: #e0e0e0;
}

.settings-category:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.settings-category.active {
    background-color: #0078d4;
    color: white;
    font-weight: bold;
}

.settings-category.active:hover {
    background-color: #0078d4; /* Keep active color on hover */
}

.settings-sidebar .menu-icon {
    filter: invert(100%); /* Make icons white for better visibility on dark background */
}

.settings-category.active .menu-icon {
    filter: none; /* Revert filter for active icon if needed, or adjust to white */
    /* If the icon is already white, no filter needed */
}

.settings-main {
    flex-grow: 1;
    padding: 20px 30px;
    overflow-y: auto;
    color: #f0f0f0;
}

.settings-pane {
    display: none;
}

.settings-pane.active {
    display: block;
}

.settings-main h2 {
    color: #0078d4;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 1px solid #4a4a4a;
    padding-bottom: 10px;
}

.settings-main p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #ccc;
}

/* Background Upload Specific Styles */
#backgroundUpload {
    display: none; /* Hide default input */
}

.upload-button {
    display: inline-block;
    background-color: #0078d4;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.upload-button:hover {
    background-color: #005a9e;
}

.upload-note {
    font-size: 13px;
    color: #aaa;
    margin-top: -10px;
    margin-bottom: 20px;
}

.background-preview {
    margin-top: 20px;
    padding: 15px;
    background-color: #282828;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #4a4a4a;
}

.background-preview img {
    max-width: 90%;
    max-height: 200px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

/* New: Settings Item Styles */
.setting-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item label {
    font-weight: bold;
    min-width: 120px; /* Align labels */
}

.setting-item select,
.setting-item input[type="checkbox"] {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #333;
    color: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.setting-item select:focus,
.setting-item input[type="checkbox"]:focus {
    border-color: #0078d4;
}

/* Custom checkbox styling (optional, for better UI consistency) */
.setting-item input[type="checkbox"] {
    appearance: none; /* Hide default checkbox */
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0078d4;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setting-item input[type="checkbox"]:checked {
    background-color: #0078d4;
    border-color: #0078d4;
}

.setting-item input[type="checkbox"]:checked::after {
    content: '✓'; /* Checkmark for checked state */
    color: white;
    font-size: 14px;
    font-weight: bold;
}