/* 
 * WebNav - Background Settings Styles
 * -----------------------------------
 */

/* Panel Container */
.settings-panel {
    position: fixed;
    top: 0;
    right: -350px; /* Start off-screen */
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -3px 0 8px rgba(0,0,0,0.1);
    transition: right 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.settings-panel.is-visible {
    right: 0;
}

/* Panel Header */
.settings-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.settings-panel-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.settings-panel .close-btn {
    border: none;
    background: none;
    font-size: 26px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
}
.settings-panel .close-btn:hover {
    opacity: 1;
}

/* Panel Body */
.settings-panel-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.setting-item input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
}

.setting-item .opacity-value {
    font-weight: bold;
    margin-left: 5px;
}

.setting-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    margin-top: 10px;
}
.setting-item input[type="range"]:hover {
    opacity: 1;
}
.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
}
.setting-item input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
}

.setting-item button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    margin-top: 10px;
    font-size: 15px;
    transition: background-color 0.2s;
}

#apply-bg-btn {
    background-color: #007bff;
}
#apply-bg-btn:hover {
    background-color: #0069d9;
}

#reset-bg-btn {
    background-color: #6c757d;
}
#reset-bg-btn:hover {
    background-color: #5a6268;
}

/* Overlay */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* Dark Theme Adjustments */
.dark-theme .settings-panel {
    background-color: #32363d;
    color: #e0e0e0;
}
.dark-theme .settings-panel-header {
    border-bottom-color: #484d55;
}
.dark-theme .settings-panel-header h4,
.dark-theme .settings-panel .close-btn,
.dark-theme .setting-item label {
    color: #e0e0e0;
}
.dark-theme .setting-item input[type="text"] {
    background-color: #282c34;
    border-color: #484d55;
    color: #e0e0e0;
}
.dark-theme .setting-item input[type="range"] {
    background: #282c34;
}
.dark-theme .setting-item input[type="range"]::-webkit-slider-thumb {
    background: #8ab4f8;
}
.dark-theme .setting-item input[type="range"]::-moz-range-thumb {
    background: #8ab4f8;
}

/* Background Styles */
body.with-custom-bg {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

body.with-custom-bg .page-container {
    background-color: rgba(245, 245, 245, var(--content-opacity, 0.9));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.with-custom-bg.dark-theme .page-container {
    background-color: rgba(40, 44, 52, var(--content-opacity, 0.9));
} 