/* ========================================================
   SLIDES FRUTIGER AERO STYLESHEET - UI REFRESH (ORIGINAL SHAPES)
   ======================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    display: flex;
}

.aero-sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    flex-shrink: 0;
    /* Glossy Sidebar UI Style with original golden/amber tones */
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(34, 34, 34, 0.75) 100%), 
        #222222;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset -1px 0 4px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    z-index: 50;
    overflow-y: auto;
}

.aero-sidebar.collapsed {
    transform: translateX(-260px);
}

.sidebar-brand h2 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pad-selection-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.pad-toggle-btn {
    /* Glossy Button Style with original golden/amber theme */
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(217, 119, 6, 0.4) 100%), 
        #d97706;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    color: #f8fafc;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.pad-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.9), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sidebar-section-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.sidebar-thumbnail-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 4px;
}

.sidebar-footer-controls {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.sidebar-action-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 7px 10px;
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.sidebar-action-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}

.file-input-label {
    cursor: pointer;
}

.latch-toggle-strip {
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 48px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.4);
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.workspace-viewport-wrapper {
    flex: 1;
    height: 100vh;
    padding: 20px 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slides-toolbar {
    width: 100%;
    max-width: 950px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.toolbar-tools-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.style-tool-btn {
    /* Glossy Toolbar Button with original golden/amber tone */
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.15) 50%, 
        rgba(217, 119, 6, 0.35) 100%), 
        #d97706;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.style-tool-btn:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.9), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.popup-tool-container {
    position: relative;
    display: flex;
    align-items: center;
}

.aero-palette-menu {
    position: absolute;
    top: 48px;
    left: 0;
    width: 200px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.55) 0%, 
        rgba(255, 255, 255, 0.2) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(180, 83, 9, 0.6) 100%), 
        #b45309;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.8), 0 10px 25px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}
.aero-palette-menu.show {
    display: flex;
}

.font-settings-popup {
    width: 210px !important;
}

.font-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.palette-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    color: #fef3c7;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 4px;
    text-transform: uppercase;
}

.snap-option-row {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
}
.snap-option-row label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aero-dropdown {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 4px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    outline: none;
    cursor: pointer;
}

.transition-picker-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(217, 119, 6, 0.4) 100%), 
        #d97706;
    padding: 4px 10px;
    height: 42px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(0,0,0,0.25);
}

.custom-picker-wrapper {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
}

.custom-picker-wrapper input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.theme-picker-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(217, 119, 6, 0.4) 100%), 
        #d97706;
    padding: 4px 8px;
    height: 42px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(0,0,0,0.25);
}

.theme-swatch-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.theme-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    display: block;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.9), 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.15s ease;
}

.theme-swatch-btn:hover .theme-swatch {
    transform: scale(1.15);
}

.presentation-title-badge {
    flex: 1;
    height: 42px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(217, 119, 6, 0.4) 100%), 
        #d97706;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.badge-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 800;
    color: #fef3c7;
    margin-right: 12px;
}

.slide-title-field {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    width: 100%;
}

.slides-editor-container {
    flex: 1;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    overflow: hidden;
}

.thumbnail-card {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    overflow: hidden;
}

.thumbnail-card.active {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.7);
}

.thumbnail-number {
    position: absolute;
    top: 2px;
    left: 4px;
    background: rgba(0,0,0,0.75);
    color: #fbbf24;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thumbnail-transition-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: rgba(217, 119, 6, 0.85);
    color: #ffffff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.canvas-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(240,249,255,0.8) 100%);
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25), inset 0 1px 2px #fff;
    overflow: hidden;
}

.slide-surface {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16/9;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35), inset 0 1px 2px rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

@keyframes aeroFade {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes aeroSlide {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes aeroZoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.slide-surface.anim-fade {
    animation: aeroFade 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.slide-surface.anim-slide {
    animation: aeroSlide 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.slide-surface.anim-zoom {
    animation: aeroZoom 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.snap-guide {
    position: absolute;
    background: #38bdf8;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 8px #38bdf8;
}
.snap-guide-x {
    top: 0;
    bottom: 0;
    width: 2px;
}
.snap-guide-y {
    left: 0;
    right: 0;
    height: 2px;
}

/* Original Slide Element Style Preserved */
.slide-element {
    position: absolute;
    cursor: move;
    border: 2px dashed rgba(56, 189, 248, 0.3);
    border-radius: 4px;
    color: #ffffff;
    user-select: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.slide-element::before {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -8px;
    right: -8px;
    background: transparent;
    pointer-events: auto;
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%,
        8px 8px, 
        8px calc(100% - 8px), 
        calc(100% - 8px) calc(100% - 8px), 
        calc(100% - 8px) 8px, 
        8px 8px
    );
    z-index: 1;
}

.slide-element:hover {
    border-color: rgba(56, 189, 248, 0.8);
}

.slide-element.selected {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.resize-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border: 1px solid #0284c7;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 20;
}
.resize-nw { top: -5px; left: -5px; cursor: nwse-resize; }
.resize-ne { top: -5px; right: -5px; cursor: nesw-resize; }
.resize-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.resize-se { bottom: -5px; right: -5px; cursor: nwse-resize; }

.slide-text-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    outline: none;
    cursor: move;
    z-index: 5;
    padding: 8px;
    box-sizing: border-box;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-weight: bold;
}

.slide-text-content[contenteditable="true"] {
    cursor: text;
}

/* Glossy Blur Context Menu with original golden theme */
.aero-context-menu {
    position: fixed;
    width: 180px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(180, 83, 9, 0.6) 100%), 
        #b45309;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.8), 0 12px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2000;
    transform-origin: top left;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.12s ease-out;
}

.aero-context-menu.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.aero-context-menu.hiding {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.12s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.1s ease-in;
}

.context-item {
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s ease;
}

.context-item:hover {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(217, 119, 6, 0.4) 100%), 
        #d97706;
    color: #ffffff;
}

.context-item.danger:hover {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 49%, 
        rgba(0, 0, 0, 0.15) 51%, 
        rgba(180, 40, 40, 0.4) 100%), 
        #b91c1c;
    color: #ffffff;
}

.context-divider {
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin: 4px 0;
}

.fullscreen-presentation-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-surface.presentation-mode {
    max-width: 90vw;
    max-height: 85vh;
}

.presentation-controls {
    position: absolute;
    bottom: 30px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(217, 119, 6, 0.4) 100%), 
        #d97706;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 6px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.present-control-btn {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(217, 119, 6, 0.4) 100%), 
        #d97706;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.7);
}

.present-control-btn.exit-btn {
    border-radius: 12px;
    width: auto;
    padding: 0 10px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 49%, 
        rgba(0, 0, 0, 0.15) 51%, 
        rgba(180, 40, 40, 0.4) 100%), 
        #b91c1c;
}

.snap-option-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    border: 1px solid #94a3b8;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 2px #fff, 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
}

.snap-option-row input[type="checkbox"]:checked {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(217, 119, 6, 0.4) 100%), 
        #d97706;
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.6), inset 0 1px 1px #fff;
}

.snap-option-row input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 3px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: rgba(217, 119, 6, 0.4);
    margin: 0 4px;
}

.shape-grid-popup {
    width: 230px !important;
}

.shape-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.shape-grid-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
    transition: all 0.1s ease;
}

.shape-grid-btn:hover {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(217, 119, 6, 0.4) 100%), 
        #d97706;
    color: #ffffff;
    transform: scale(1.05);
}

.shape-grid-btn.wide-btn {
    grid-column: span 4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
}

.aero-glass-tooltip {
    position: fixed;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.15) 48%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(180, 83, 9, 0.6) 100%), 
        #b45309;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 6px 16px rgba(0, 0, 0, 0.25);
    padding: 4px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    pointer-events: none;
    transform-origin: top left;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.16s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.12s ease-out;
}

.aero-glass-tooltip.show {
    transform: scale(1);
    opacity: 1;
}

.slide-svg-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-svg-shape {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
}

.selection-box {
  position: absolute;
  border: 2px solid rgba(255, 183, 3, 0.9);
  background: linear-gradient(
    135deg,
    rgba(255, 204, 51, 0.25) 0%,
    rgba(247, 127, 0, 0.35) 100%
  );
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 183, 3, 0.5);
  pointer-events: none;
  z-index: 1000;
  border-radius: 3px;
}

/* ========================================================
   ROTATION HANDLE STYLE
   ======================================================== */
.rotate-handle {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 25;
}

.rotate-handle:active {
    cursor: grabbing;
}
