/* =========================================
   1. VARIABLES & BASE
   ========================================= */
:root {
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --bezier: cubic-bezier(0.77, 0, 0.175, 1);
}

body {
    --accent-rgb: 168, 199, 250;

    /* Universal variables */
    --card-bg: rgba(20, 20, 25, 0.45);
    --card-border: rgba(var(--accent-rgb), 0.15);
    --group-bg: rgba(30, 30, 35, 0.55);
    --group-border: rgba(var(--accent-rgb), 0.25);
    --accent: rgb(var(--accent-rgb));

    color: var(--text-main);
    overflow: hidden;
    background-color: #000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

/* =========================================
   2. BACKGROUNDS & LAYOUT
   ========================================= */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    filter: brightness(0.6) blur(0);
    transition: opacity 1.2s var(--bezier);
}

.bg-layer.active {
    opacity: 1;
}

.slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 300vw;
    height: 100dvh;
    display: flex;
    transition: transform 0.8s var(--bezier);
    z-index: 5;
    touch-action: pan-y;
}

.slider-container.swiping {
    transition: none !important;
}

.workspace {
    width: 100vw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-block: calc(var(--header-height, 100px) + 2rem);
}

.layout-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

/* =========================================
   3. WIDGETS (CLOCK, DATE, F1, WEATHER)
   ========================================= */
.widgets {
    position: fixed;
    top: 3rem;
    left: 4rem;
    right: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
    pointer-events: none;
}

.time-widget {
    display: flex;
    flex-direction: column;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.time-widget__clock {
    font-size: 7rem;
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: -3px;
}

.time-widget__date {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}

.info-widget {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.info-item__value {
    font-size: 1.2rem;
    font-weight: 500;
}

.info-item__value--accent {
    color: var(--accent);
    transition: color 0.8s var(--bezier);
}

/* =========================================
   4. OVERLAYS (AUTH & SEARCH)
   ========================================= */
/* Auth Overlay */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    background-image: url('/wallpapers/wallhaven-o37d1m.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--bezier);
}

.auth-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
}

.auth-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(25px);
}

.auth-card h2 {
    margin-top: 0;
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.auth-card input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.auth-card input:focus {
    border-color: var(--accent);
}

.auth-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.auth-actions button {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

#btnLogin {
    background: var(--accent);
    color: #000;
}

#btnLogin:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.auth-message {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #ff6b6b;
    min-height: 1rem;
}

/* Search Overlay */
.search-trigger {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 1rem 3rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease, border-color 0.8s var(--bezier), color 0.8s var(--bezier), background-color 0.8s var(--bezier);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-trigger:hover {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.6);
    transform: translateX(-50%) translateY(-3px);
}

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 100;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-form {
    width: 100%;
    max-width: 700px;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--bezier);
}

.search-overlay.active .search-form {
    transform: translateY(0) scale(1);
}

.search-input {
    width: 100%;
    padding: 1.5rem;
    font-size: 2.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
    text-align: center;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-bottom-color: var(--accent);
}

/* =========================================
   5. CARDS & GROUPS (VIEW MODE)
   ========================================= */
.draggable-item {
    position: relative;
    height: 64px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    border: 1px solid var(--card-border);
    user-select: none;
    transition: transform 0.3s var(--bezier), background 0.3s var(--bezier), border-color 0.3s var(--bezier), box-shadow 0.3s var(--bezier);
    z-index: 1;
}

.draggable-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -1;
    pointer-events: none;
}

.draggable-item:hover {
    background: rgba(var(--accent-rgb), 0.15) !important;
    border-color: rgba(var(--accent-rgb), 0.5) !important;
}

.card-icon {
    width: 64px;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.card-single {
    background: var(--card-bg);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-single img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.card-group {
    background: var(--group-bg);
    border-color: var(--group-border);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.group-header {
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    height: 100%;
    width: 100%;
}

.group-title {
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s var(--bezier);
}

.card-group:hover .group-title {
    transform: translateX(-14px);
}

.btn-open-all {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s var(--bezier);
}

.btn-open-all svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.card-group:hover .btn-open-all {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.btn-open-all:hover {
    background: var(--accent);
    color: #000;
}

.group-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;

    background: rgba(30, 30, 35, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s var(--bezier), border-color 0.8s var(--bezier);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transform-origin: top center;
}

.card-group.active {
    z-index: 100;
}

.card-group.active .group-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sub-link {
    position: relative;
    z-index: 1;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sub-link:first-of-type:hover {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.sub-link:last-of-type:hover {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.sub-link:hover {
    background: rgba(var(--accent-rgb), 0.15);
    color: white;
    padding-left: 1.5rem;
}

.sub-link img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    opacity: 0.8;
}

.sub-link:hover img {
    opacity: 1;
}

/* =========================================
   6. EDIT MODE & CONTROLS
   ========================================= */
body.edit-mode .bg-layer.active {
    filter: brightness(0.25) blur(12px) !important;
    transform: scale(1.05);
}

.layout-grid {
    transition: transform 0.4s var(--bezier);
}

body.edit-mode .layout-grid {
    transform: scale(0.92);
}

body.edit-mode .draggable-item {
    cursor: grab !important;
    z-index: 10;
}

body.edit-mode .draggable-item:active {
    cursor: grabbing !important;
}

body.edit-mode .card-group .group-header {
    pointer-events: none;
}

body.edit-mode .draggable-item.dragging {
    opacity: 0.9;
    transform: scale(1.08);
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(var(--accent-rgb), 0.8) !important;
}

body.edit-mode .btn-open-all {
    display: none;
}

/* Edit/Delete buttons on cards */
.card-controls {
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--bezier);
    z-index: 200;
    transform: translateY(5px);
}

body.edit-mode .card-controls {
    pointer-events: all;
}

body.edit-mode .draggable-item:hover .card-controls {
    opacity: 1;
    transform: translateY(0);
}

body.edit-mode .draggable-item.dragging .card-controls {
    display: none;
}

.control-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
    font-size: 12px;
}

.control-btn:hover {
    transform: scale(1.15);
}

.control-btn.edit {
    color: #4dabf7;
}

.control-btn.delete {
    color: #ff6b6b;
}

/* Workspace title and edit pencil */
.workspace-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.workspace-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s var(--bezier);
}

body.edit-mode .workspace-title {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.edit-mode .workspace-title:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* Left/right arrows */
.ws-move-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    padding: 0.5rem;
    transform: scale(0.8);
}

body.edit-mode .ws-move-btn {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.ws-move-btn:hover {
    color: var(--accent);
    transform: scale(1.3) !important;
}

.ws-move-btn:disabled {
    opacity: 0 !important;
    pointer-events: none;
}

body.edit-mode .ws-move-btn:disabled {
    opacity: 0.1 !important;
}

/* FAB - Edit mode */
.fab-edit {
    position: fixed;
    bottom: 3rem;
    right: 4rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s var(--bezier);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.fab-edit:hover,
body.edit-mode .fab-edit {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.fab-edit svg {
    width: 24px;
    height: 24px;
}

/* FAB - Add workspace */
.fab-add-ws {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%) translateX(20px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s var(--bezier);
    opacity: 0;
    pointer-events: none;
}

body.edit-mode .fab-add-ws {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-50%) translateX(0);
}

.fab-add-ws:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.fab-add-ws svg {
    width: 20px;
    height: 20px;
}

/* Add Item card */
.card-add {
    display: none;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-muted);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.edit-mode .card-add {
    display: flex;
}

.card-add:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

/* FAB - Settings */
.fab-settings {
    position: fixed;
    bottom: 3rem;
    right: 8.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s var(--bezier);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.fab-settings:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: rotate(45deg);
}

.fab-settings svg {
    width: 24px;
    height: 24px;
}

#settingsModal input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
}

/* =========================================
   7. MODALS & FORMS
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--bezier);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-card input,
.modal-card select {
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.modal-card input:focus,
.modal-card select:focus {
    border-color: var(--accent);
}

.sub-link-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Basic UI buttons */
.btn-secondary,
#btnAddSubLink {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover,
#btnAddSubLink:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-small {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    flex: none !important;
    width: auto;
}

.btn-danger {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
    font-weight: 500;
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.25) !important;
}

/* Move buttons inside group modal */
.sub-link-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-right: 4px;
}

.btn-move-sub {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.6rem;
    padding: 2px 4px;
    transition: color 0.2s, transform 0.2s;
}

.btn-move-sub:hover {
    color: var(--accent);
    transform: scale(1.3);
}

.sub-link-row:first-child .btn-move-sub:first-child {
    opacity: 0.1;
    pointer-events: none;
}

.sub-link-row:last-child .btn-move-sub:last-child {
    opacity: 0.1;
    pointer-events: none;
}

/* Wide modal for settings */
.settings-card {
    max-width: 700px !important;
    width: 90%;
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb), 0.5) transparent;
}

.settings-content::-webkit-scrollbar {
    width: 6px;
}

.settings-content::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.5);
    border-radius: 10px;
}

.settings-footer {
    flex: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   8. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {

    .widgets {
        top: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 1.5rem;
        align-items: center;
    }

    .time-widget {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
    }

    .time-widget__clock {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

    .time-widget__date {
        margin-left: 0.2rem;
        font-size: 0.9rem;
    }

    .info-widget {
        display: contents;
    }

    .info-widget>.info-item:first-child {
        grid-column: 2;
        grid-row: 1;
        align-items: flex-end;
        text-align: right;
    }

    .info-widget>.info-item:last-child {
        grid-column: 1 / -1;
        grid-row: 2;
        align-items: center;
        text-align: center;
    }

    .workspace {
        padding-top: calc(var(--header-height, 150px) + 1.5rem);
        padding-bottom: calc(3rem + 50px);
        /* justify-content: flex-start; */
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .workspace::-webkit-scrollbar {
        display: none;
    }

    .layout-grid {
        padding: 0 1rem;
        gap: 0.8rem;
    }

    .workspace-title-wrapper {
        margin-bottom: 1.5rem;
    }

    /* REDUCE CARD SIZES ON MOBILE */
    .draggable-item {
        height: 52px;
        border-radius: 12px;
    }

    .card-icon {
        width: 52px;
    }

    .card-icon img {
        width: 26px;
        height: 26px;
    }

    .card-single {
        padding: 0 1rem;
        font-size: 0.85rem;
        gap: 0.75rem;
    }

    .card-single img {
        width: 20px;
        height: 20px;
    }

    .card-group {
        min-width: 140px;
    }

    .group-header {
        padding: 0 1rem;
    }

    .group-title {
        font-size: 0.85rem;
    }

    .btn-open-all {
        width: 24px;
        height: 24px;
        right: 0.5rem;
    }

    .sub-link {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    /* FLOATING BUTTONS */
    .fab-edit {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .fab-add-ws {
        top: auto;
        bottom: 1.5rem;
        right: auto;
        left: 1.5rem;
        transform: translateY(20px);
    }

    body.edit-mode .fab-add-ws {
        transform: translateY(0);
    }

    .fab-settings {
        bottom: 1.5rem;
        right: 5.5rem;
        width: 50px;
        height: 50px;
    }

    /* MINIATURE SEARCH BUTTON (TURN INTO ROUND ICON) */
    .search-trigger {
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .search-trigger::after {
        content: '';
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
        background-size: 20px;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        inset: 0;
    }

    .search-trigger:hover {
        transform: translateX(-50%) translateY(-3px);
    }

    /* Overlays and modals */
    .modal-card,
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 90dvh;
        overflow-y: auto;
    }

    .search-input {
        font-size: 1.8rem;
        padding: 1rem;
    }

    .slider-container {
        will-change: transform;
        transition: transform 0.5s var(--bezier);
    }
}