/* ============ FLOOR PLAN EDITOR ============ */
.fe-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 4, 15, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fe-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.fe-panel {
    width: 92vw;
    max-width: 1100px;
    height: 88vh;
    max-height: 750px;
    background: rgba(10, 22, 40, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.06),
        0 20px 70px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(56, 189, 248, 0.08);
}

.fe-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.10);
    flex-shrink: 0;
}

.fe-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fe-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fe-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(238, 242, 255, 0.70);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.fe-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 7px;
    color: rgba(56, 189, 248, 0.80);
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.fe-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.28);
    color: #38BDF8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.15);
}

.fe-btn i { font-size: 10px; }

.fe-btn-add {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.22);
}

.fe-btn-delete {
    color: rgba(248, 113, 113, 0.70);
    border-color: rgba(248, 113, 113, 0.12);
    background: rgba(248, 113, 113, 0.04);
}
.fe-btn-delete:hover {
    color: #F87171;
    border-color: rgba(248, 113, 113, 0.30);
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.15);
}

.fe-btn-save {
    color: #22D3EE;
    border-color: rgba(34, 211, 238, 0.18);
    background: rgba(34, 211, 238, 0.06);
}
.fe-btn-save:hover {
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.30);
}

.fe-btn-close-editor {
    color: rgba(238, 242, 255, 0.40);
    border-color: rgba(238, 242, 255, 0.08);
    background: transparent;
}
.fe-btn-close-editor:hover {
    color: rgba(238, 242, 255, 0.70);
    border-color: rgba(238, 242, 255, 0.18);
}

.fe-type-dropdown {
    position: relative;
}

.fe-type-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 10px;
    padding: 4px;
    min-width: 150px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.50);
    z-index: 300;
}

.fe-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: transparent;
    border: none;
    color: rgba(238, 242, 255, 0.55);
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    text-align: left;
    white-space: nowrap;
}

.fe-type-option:hover {
    background: rgba(56, 189, 248, 0.10);
    color: rgba(238, 242, 255, 0.85);
}

.fe-type-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fe-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.fe-canvas-wrap {
    flex: 1;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(56, 189, 248, 0.04) 0%, transparent 60%);
}

.fe-canvas-wrap::-webkit-scrollbar { width: 4px; height: 4px; }
.fe-canvas-wrap::-webkit-scrollbar-track { background: transparent; }
.fe-canvas-wrap::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.10);
    border-radius: 2px;
}

.fe-canvas {
    display: block;
    border: 1px solid rgba(56, 189, 248, 0.10);
    border-radius: 8px;
    background: rgba(2, 4, 15, 0.50);
    cursor: default;
}

.fe-props {
    width: 200px;
    flex-shrink: 0;
    border-left: 1px solid rgba(56, 189, 248, 0.10);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fe-props-header {
    padding: 12px 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: rgba(238, 242, 255, 0.40);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.06);
}

.fe-props-body {
    flex: 1;
    padding: 12px 14px;
    overflow-y: auto;
}

.fe-props-body::-webkit-scrollbar { width: 2px; }
.fe-props-body::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.10); border-radius: 1px; }

.fe-props-empty {
    color: rgba(238, 242, 255, 0.20);
    font-size: 9px;
    text-align: center;
    padding: 20px 0;
}

.fe-prop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fe-prop-label {
    font-size: 9px;
    color: rgba(238, 242, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    width: 50px;
}

.fe-prop-input,
.fe-prop-select {
    width: 120px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 6px;
    color: rgba(238, 242, 255, 0.70);
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.fe-prop-input:focus,
.fe-prop-select:focus {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.08);
}

.fe-prop-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%2338BDF8' d='M1 2l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

.fe-prop-select option {
    background: #0a1628;
    color: rgba(238, 242, 255, 0.80);
}

.fe-hint {
    padding: 8px 16px;
    border-top: 1px solid rgba(56, 189, 248, 0.06);
    text-align: center;
    flex-shrink: 0;
}

.fe-hint span {
    font-size: 8px;
    color: rgba(238, 242, 255, 0.18);
    letter-spacing: 0.5px;
}

.fe-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.10);
    border-radius: 3px;
    font-size: 7px;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(56, 189, 248, 0.55);
    letter-spacing: 0;
}

/* ============ PRESET SECTION (in Settings popup) ============ */
.fe-preset-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fe-preset-label {
    font-size: 9px;
    color: rgba(238, 242, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

/* ============ TOAST NOTIFICATION ============ */
.dt-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 10px 24px;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.20);
    border-radius: 10px;
    color: rgba(238, 242, 255, 0.85);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(56, 189, 248, 0.08);
    pointer-events: none;
}

.dt-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
