/* GLASSMORPHISM MODAL REDESIGN */

/* Override desktop bottom-sheet to look like a glass modal */
body.layout-desktop .bottom-sheet {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    max-width: 500px !important;
    /* Smaller, nicer width */
    margin: auto !important;
    /* Center it properly */
    height: auto !important;
    max-height: 80vh !important;
    padding-bottom: 24px !important;
}

body.dark .bottom-sheet {
    background: rgba(30, 41, 59, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Modal Title */
.sheet-title {
    font-size: 22px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 12px 0;
}

/* Close Button */
.sheet-close {
    background: rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    color: var(--muted) !important;
    transition: all 0.2s;
}

.sheet-close:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* Inputs */
.sheet-input {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s !important;
    color: var(--text) !important;
}

body.dark .sheet-input {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.sheet-input:focus {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

/* GO Button */
.sheet-go {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
    transition: transform 0.2s !important;
}

.sheet-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.45) !important;
}

.sheet-go:disabled {
    background: #cbd5e1 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Section Headers */
.sheet-section-head span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--muted);
}

/* Chips */
.sheet-chips .chip {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

body.dark .sheet-chips .chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Hide the Handle on Desktop */
body.layout-desktop .sheet-handle {
    display: none !important;
}

/* Overlay needs to be centered flex for desktop modal look */
body.layout-desktop .sheet-overlay {
    align-items: center !important;
    padding: 20px !important;
    backdrop-filter: blur(5px) !important;
    background: rgba(15, 23, 42, 0.4) !important;
}