/* Edit Mode Styling */
body.edit-mode-active #dynamic-area,
body.edit-mode-active .dock,
body.edit-mode-active .drawer-handle,
body.edit-mode-active .nav-btn-small,
body.edit-mode-active .page-indicator {
    opacity: 0 !important;
    pointer-events: none !important;
}

body.edit-mode-active .container {
    pointer-events: auto !important;
    z-index: 9997; /* Above background but below edit UI */
}

body.edit-mode-active #clock,
body.edit-mode-active .info {
    position: relative;
}

body.edit-mode-active #clock::after,
body.edit-mode-active .info::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px dashed rgba(255,255,255,0.5);
    border-radius: 15px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, border-color 0.2s;
}

body.edit-mode-active #clock:hover::after,
body.edit-mode-active .info:hover::after {
    opacity: 1;
}

body.edit-mode-active #clock.edit-selected::after,
body.edit-mode-active .info.edit-selected::after {
    opacity: 1;
    border-style: solid;
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
    z-index: -1;
}

#font-select option[value="Bricolage Grotesque"] {
    font-family: 'Bricolage Grotesque', sans-serif;
}

#font-select option[value="DynaPuff"] {
    font-family: 'DynaPuff', cursive;
}

#font-select option[value="Domine"] {
    font-family: 'Domine', serif;
}

#font-select option[value="Climate Crisis"] {
    font-family: 'Climate Crisis', sans-serif;
}

#font-select option[value="JetBrains Mono"] {
    font-family: 'JetBrains Mono', monospace;
}

#font-select option[value="DotGothic16"] {
    font-family: 'DotGothic16', monospace;
}

#font-select option[value="Playpen Sans"] {
    font-family: 'Playpen Sans', cursive;
}

#font-select option[value="Jaro"] {
    font-family: 'Jaro', sans-serif;
}

#font-select option[value="Doto"] {
    font-family: 'Doto', monospace;
}

#font-select option[value="Nunito"] {
    font-family: 'Nunito', sans-serif;
}

#wallpaperInput {
    display: none;
}

#sticker-settings-popup {
    width: 200px;
}

.wallpaper-drawer-handle {
    width: 100%;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.wallpaper-drawer-handle .app-drawer-handle {
    top: 0;
}

#wallpaper-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.wallpaper-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wallpaper-picker-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    corner-shape: superellipse(1.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--sun-shadow);
    overflow: hidden;
}

.upload-item .wallpaper-picker-thumbnail {
    background-color: var(--search-background);
}

.upload-item .material-symbols-rounded {
    font-size: 48px;
    color: var(--secondary-text-color);
}

.wallpaper-picker-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    width: 100%;
}

.wallpaper-picker-description,
.wallpaper-picker-artist {
    font-size: 12px;
    color: var(--secondary-text-color);
    margin: 0;
    line-height: 1.3;
}

.wallpaper-picker-artist {
    font-style: italic;
}

.wallpaper-picker-links {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wallpaper-picker-badge {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 14px;
    corner-shape: superellipse(1.5);
    background-color: var(--search-background);
    color: var(--secondary-text-color);
    text-decoration: none;
    border: 1px solid var(--glass-border);
}

.wallpaper-picker-badge .material-symbols-rounded {
    font-size: 14px;
    margin-left: 4px;
}

.wallpaper-picker-title {
    font-weight: 500;
    color: var(--text-color);
}