@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #bfa17d;
    --primary-light: #fffecc;
    --bg-color: #050505;
    --text-color: #fffecc;
    --border-color: #fffecc20;
    --panel-bg: rgba(15, 15, 15, 0.85);
    --shadow: 0px 0px 60px 30px #000000;
    --danger: #ff0024;
    --danger-bg: #fef2f2;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    touch-action: none;
    background: var(--bg-color);
    font-family: 'Poppins', sans-serif; 
    color: var(--text-color);
}

#root {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* REPLACE IN styles.css */

#canvas-container {
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100dvh;
    position: relative;
    overflow: hidden; 
    background-color: var(--bg-color);
    z-index: 1; /* Ensure base layer */
}

canvas {
    display: block;
    position: absolute; /* Force absolute positioning */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
    z-index: 5; /* Explicitly place above container background */
}

#text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;  /* Ensure it covers space for positioning */
    height: 100%;
    pointer-events: none; /* Let clicks pass through to canvas */
    z-index: 10; /* Sit above canvas */
    overflow: visible;
    transform-origin: 0 0;
}

#text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0; /* Dimensions handled by overflow visible */
    pointer-events: none; /* Let clicks pass through to canvas if not hitting a text */
    transform-origin: 0 0;
    z-index: 10;
    overflow: visible;

    transition: none !important; 
    transform-origin: 0 0;
    will-change: transform;
}

/* Hover & Selected State — backdrop blur when hovered or bounding box is active */
.canvas-textarea:hover,
.canvas-textarea.selected {
    background-color: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(4px);
    box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.2);
    text-shadow: none !important;
}

/* Focus State - When typing */
.canvas-textarea:focus {
    background-color: var(--panel-bg);
    border-color: var(--border-color);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    cursor: text;
}

/* Placeholder Text - Faded state when empty */
.canvas-textarea::placeholder {
    color: rgba(255, 254, 204, 0.2); /* Very low opacity for the 'faded' look */
    text-shadow: none;
    transition: color 0.2s ease;
}

/* Make it slightly more visible when you are actually typing/focused */
.canvas-textarea:focus::placeholder {
    color: rgba(255, 254, 204, 0.4);
}

/* styles.css */

/* [REPLACE IN styles.css] */

/* [UPDATE IN styles.css] */

.canvas-textarea::-webkit-scrollbar {
    display: none;
  }

/* Explicit-sized text boxes: show thin scrollbars */
.canvas-textarea.explicit-size {
    overflow: auto;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 254, 204, 0.3) transparent;
}

.canvas-textarea.explicit-size::-webkit-scrollbar {
    display: block;
    width: 6px;
    height: 6px;
}

.canvas-textarea.explicit-size::-webkit-scrollbar-track {
    background: transparent;
}

.canvas-textarea.explicit-size::-webkit-scrollbar-thumb {
    background: rgba(255, 254, 204, 0.25);
    border-radius: 3px;
}

.canvas-textarea.explicit-size::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 254, 204, 0.4);
}

.canvas-textarea.explicit-size::-webkit-scrollbar-corner {
    background: transparent;
}

.canvas-textarea {
    position: absolute;
    background-color: transparent; 
    color: #fffecc;
    border: 1px solid transparent; 
    
    /* Keep padding relative */
    padding: 0.625em 0.85em; 
    
    font-family: 'Poppins', sans-serif; 
    font-size: 24px; 
    line-height: 1;
    resize: none; 
    overflow: hidden;
    white-space: pre; 
    pointer-events: auto; 
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;
    outline: none;

    min-width: 5.5em;       
    
    /* --- CHANGED --- */
    /* Use a fixed EM radius. 
       This creates a pill shape for 1 line, but rounded corners for multi-line. */
    border-radius: 1.15em; 
    /* ---------------- */

    box-sizing: content-box; 
    
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    transform-origin: top left;
    margin: 0;
}

.canvas-textarea:focus {
    /* When actually typing */
    background-color: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(4px);
    border-color: #fffecc50;
    cursor: text;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.panel.vertical {
    border-radius: 20px;
}

.canvas-textarea.readonly {
    /* When just sitting on the canvas */
    cursor: grab; /* Indicates draggable */
    user-select: none; /* Prevent text highlighting when dragging */
}

.canvas-textarea::placeholder {
    color: rgba(255, 254, 204, 0.3);
}

canvas {
    display: block;
    touch-action: none;
    cursor: crosshair;
}

/* --- UI Layouts --- */

#top-toolbar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 50;
}

/* Add this new rule */
.toolbar-group.center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 1rem;
    position: absolute;
    
    left: 50%;
    transform: translateX(-50%);
}

.title-input {
    background: transparent;
    border: none;
    color: #fffecc;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 0px 0px 20px #000000;
    text-align: center;
    outline: none;
    padding: 0.1rem 1rem;
    min-width: 200px;
    max-width: 400px;
    cursor: text;
}

.toolbar-group.center .panel:has(.title-input:focus) {
    background: var(--panel-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.toolbar-group.center .panel:has(.title-input:hover) {
    background-color: var(--panel-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--shadow);
}

.title-input::placeholder {
    color: #fffecc;
    transition: all 0.5s ease;
    text-shadow: 0px 0px 20px #000000;
}

.title-input {
    text-shadow: 
        0px 0px 7px rgba(0, 0, 0, 0.8),
        0px 0px 200px rgba(0, 0, 0, 0.5);
}

.title-input::placeholder {
    color: #fffecc;
    transition: all 0.5s ease;
    text-shadow: 
        0px 0px 7px rgba(0, 0, 0, 0.8),
        0px 0px 200px rgba(0, 0, 0, 0.5);
}

.title-input:focus::placeholder {
    color: #fffecc20;
    transition: all 0.5s ease;
    text-shadow: 0px 0px 0px #00000000;
}

.toolbar-group {
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-height: 52px;
    gap: 0.5rem;
}

.toolbar-group.right {
    align-items: flex-end;
}

.toolbar-group.center .panel {
    overflow: visible; /* Add this */
    padding: 6px 7px;
}

/* Or if you want to be more specific: */
.panel {
    background: var(--panel-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 7px;
    max-height: 34px;
    border-radius: 200px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: visible; /* Add this to all panels, or just the title one */
}

.logo-button {
    width: 35px;
    display: flex;
    align-items: center;
    background-color: rgba(15, 15, 15, 0);
    z-index: 999;
    box-shadow: none;
    border: 2px solid #fffecc00;
    justify-content: center;
}

.title-panel {
    background: #05050500;
    backdrop-filter: blur(0px);
    border: 2px solid #fffecc00;
    box-shadow: 0px 0px #00000000;
}

.panel.vertical {
    flex-direction: column;
}

.panel.grid-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* --- Buttons --- */

button {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #fffecc;
}

.icon-btn:hover {
    background-color: #fffecc20;
}

.icon-btn.active {
    background-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 0 25px -1px #fffecc90;
}

.icon-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- Main Toolbar (Bottom) --- */

.line-type-icon {
    width: 30px;
    height: 20px;
}

#main-toolbar {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    pointer-events: auto;
    z-index: 50;
    max-width: 95vw;
    overflow-x: auto;
}

.tool-btn {
    padding: 15px;
    border-radius: 20px;
    color: #fffecc;
    background: #fffecc20;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.tool-btn:hover {
    background: #fffecc50;
    transition: all 0.3s ease-in-out;
}

.tool-btn.active {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 25px -1px #fffecc90;
    transition: all 0.3s ease-in-out;
}

/* --- Utilities --- */

.separator {
    width: 3px;
    border-radius: 100px;
    height: 1.7rem;
    background-color: var(--border-color);
    margin: 0 0.25rem;
}

.no-cursor {
    cursor: none !important;
}

.separator-sm {
    width: 150px;
    border-radius: 100px;
    z-index: 9999;
    height: 3px;
    background-color: #fffecc20;
    margin: 0 0.25rem;
}

#footer-info {
    position: absolute;
    bottom: 0.25rem;
    right: 0.5rem;
    pointer-events: none;
    font-size: 10px;
    color: #94a3b8;
    opacity: 0.7;
}

/* Specific button styles */
.btn-danger {
    color: var(--danger);
    width: 100%;
    background-color: #ff002424;
    font-size: 1.05rem;
    padding: 0.25rem 0.5rem;
    border-radius: 200px;
}
.btn-danger:hover {
    background-color: #ff0022a6;
    color: #ffd8d8;
}

.text-btn {
    font-size: 1.05rem;
    width: 100%;
    color: #fffecc;
    padding: 0.25rem 0.5rem;
    border-radius: 200px;
}

.text-btn:hover {
    background-color: #fffecc15;
}

.text-btn.active {
    color: #050505;
}

.text-btn.active:hover {
    color: #050505;
    background-color: #fffecc;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        filter: blur(10px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

.floating-textarea {
    position: fixed;
    background: rgba(15, 15, 15, 0.85); /* Dark semi-transparent background */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fffecc;
    border: none; /* No border, just the background */
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Must match canvas padding */
    font-family: 'Poppins', sans-serif; 
    font-size: 24px; /* Default size */
    line-height: 1.2;
    outline: none;
    resize: none;
    overflow: hidden;
    z-index: 1000;
    white-space: pre;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transform-origin: top left;
}

.floating-textarea::placeholder {
    color: rgba(255, 254, 204, 0.3); /* Dimmed placeholder color */
}

/* --- Export Modal (Refined) --- */
/* --- Export Modal (Split Layout) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-content {
    /* background: #0f0f0f; */
    /* border: 1px solid var(--border-color); */
    /* box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8); */
    /* border-radius: 24px; */
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
    display: flex;
    gap: 20px;
    overflow: visible;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .modal-content { transform: scale(1); }

/* --- LEFT COLUMN: PREVIEW --- */
.export-preview-col {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 45px !important; 
    justify-content: center;
    overflow: hidden;
}

#preview-canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 45px;
}

/* --- RIGHT COLUMN: SETTINGS --- */
.export-settings-col {
    width: 360px;
    min-width: 360px;
    padding: 24px;
    overflow-y: auto;
    border-radius: 45px !important; 
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    gap: 20px;
    background: #05050591;
    -ms-overflow-style: none;  
    scrollbar-width: none;
}

.export-settings-col::-webkit-scrollbar {
    display: none;
}

/* Header & Close Button */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.modal-header h3 { margin: 0; color: #fffecc; font-size: 1.5rem; }

.close-btn {
    color: #fffecc;
    font-size: 1.5rem;
    height: 40px;
    width: 40px;
    border-radius: 100%;
    transform: rotate(0deg);
    background-color: #fffecc20;
    padding: 5px;
    transition: all 0.3s ease-in-out
}
.close-btn:hover { color: #050505; background-color: #fffecc; transform: rotate(90deg);}

/* Form Elements (Reusing your existing variable styles) */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.75rem; color: rgba(255, 254, 204, 0.6); font-weight: 600; letter-spacing: 0.05em; margin-left: 4px; }
.form-input {
    background: rgba(255, 254, 204, 0.05);
    border: none;
    padding: 12px 16px;
    border-radius: 100px;
    font-size: 17px;
    color: #fffecc;
    outline: none;
}
.radio-group { 
    display: flex; background: rgba(255, 254, 204, 0.05); 
    padding: 4px; gap: 4px; border-radius: 100px; 
}
.radio-option { 
    flex: 1; text-align: center; padding: 8px; 
    cursor: pointer; color: rgba(255, 254, 204, 0.6); 
    font-size: 17px; border-radius: 8px; transition: all 0.2s; 
}
.radio-option:hover {
    background-color: #fffecc20;
}
.radio-option.selected { 
    background: #fffecc; color: #050505;
}
.toggle-switch {
    width: 44px; height: 24px; 
    background: rgba(255, 254, 204, 0.1); 
    border-radius: 100px; position: relative; cursor: pointer;
}
.toggle-switch::after {
    content: ''; position: absolute; top: 3px; left: 3px; 
    width: 18px; height: 18px; background: #fffecc; 
    border-radius: 50%; transition: transform 0.2s; 
}
.toggle-switch.active { background: #fffecc; }
.toggle-switch.active::after { transform: translateX(20px); background: #050505; }
.toggle-switch.disabled { opacity: 0.3; pointer-events: none; }

.modal-actions { margin-top: auto; display: flex; gap: 10px; }

.btn-full {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-cancel {
    background: transparent;
    color: rgba(255, 254, 204, 0.7);
    background-color: fffecc20;
    border: none;
}
.btn-cancel:hover { background: rgba(255, 254, 204, 0.1); color: #fffecc; }

.btn-confirm {
    background: #fffecc;
    color: #050505;
}
.btn-cancel:hover { background-color: #fffecc !important;  color: #050505 !important; scale: 1.01 !important; }
.btn-confirm:hover { box-shadow: 0px 0px 50px #fffecc10 !important;  color: #050505 !important; scale: 1.01 !important; }

/* --- Mini Map --- */

#minimap-container {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 120px;
    height: 80px;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 60;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
}

#minimap-container:hover {
    border-color: #fffecc60;
    transform: scale(1.02);
}

/* Expanded State */
#minimap-container.expanded {
    width: 300px;
    height: 200px;
}

#minimap-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

@media (max-width: 768px) and (orientation: portrait) {
    #minimap-container {
        box-shadow: 0px 0px 20px #000000;
        bottom: 6.5rem;
        right: 10px;
        transition: all 0.3s cubic-bezier(0.18, 0.89, 0.38, 1.07);
    }

    #minimap-container.expanded {
        width: calc(100% - 25px);
        
        right: 10px;
        height: 200px;
        box-shadow: var(--shadow);
    }

    #minimap-container:hover {
        border-color: var(--border-color);
        transform: unset;
    }

    .modal-content { flex-direction: column; height: 95vh; width: 95vw; }
    .export-preview-col { height: 40%; border-right: none; border-bottom: 1px solid var(--border-color); }
    .export-settings-col { width: 100%; min-width: auto; flex: 1;}
}

#alignment-toolbar {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    
    /* CHANGE: Set --at-x to 0% because JS calculates the exact centered position */
    --at-x: 0%; 
    --at-y: 0%;
    --at-scale: 0.85;
    
    transform: translate(var(--at-x), var(--at-y)) scale(var(--at-scale));
    
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    z-index: 1000;
    
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border-width: 1px;
    border-color: var(--border-color);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8);
    
    /* Physics Transitions */
    transition: 
        opacity 0.2s ease,
        transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.4s ease,
        border-color 0.5s ease-in-out,
        top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        
    min-width: 220px;
    max-height: 80vh;
    overflow-y: auto;
    filter: blur(15px);
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#alignment-toolbar::-webkit-scrollbar { display: none; }

#alignment-toolbar.visible {
    opacity: 1;
    transition: 
        opacity 0.2s ease,
        transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 1.3s ease,
        border-color 0.3s ease-in-out,
        top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
    filter: blur(0px);
    --at-scale: 1; /* Only update scale, keep position logic intact */
}

#alignment-toolbar.ghost {
    opacity: 0.15;
    pointer-events: none;
    --at-scale: 0.98;
}

#alignment-toolbar.dragging {
    transition: none;
    cursor: grabbing;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.9);
    border-color: rgba(255, 254, 204, 0.4);
}

/* Bento Rows */
.atb-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spread evenly */
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* Internal Divider */
.atb-divider {
    height: 3px;
    background: rgba(255, 254, 204, 0.1);
    width: 90%;
    border-radius: 100px;
    margin: 2px auto;
}

/* Buttons */
.action-btn {
    flex: 1; /* Distribute space evenly */
    padding: 10px;
    border-radius: 14px; /* Soft squares */
    color: #fffecc;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fffecc10;
    border: none;
    transition: all 0.3s ease;
}

/* Add this to your styles.css */
.action-btn.active {
    background-color: #fffecc;
    color: #050505; /* Dark Icon */
    opacity: 1;
}

.action-btn.active:hover {
    background-color: #fffecc; /* Keep it lit on hover */
    color: #050505;
    box-shadow: 0 0 15px rgba(255, 254, 204, 0.2); /* Optional Glow */
}

.action-btn:hover {
    background-color: #fffecc;
    color: #0e0e0e;
}

.action-btn:active {
    /* transform: scale(0.95); */
}

/* Specific groupings styling */
.group-section {
    background: none;
    border-radius: 16px;
}


/* Danger Button */
.action-btn.danger {
    color: var(--danger);
    background-color: rgba(255, 0, 36, 0.1);
}

.action-btn.danger:hover {
    background-color: rgb(255, 0, 68);
    color: #ffffff;
}

/* Slider Base - Force Opacity */
.slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 45px;
    background: #fffecc20; /* Default background, JS will override with gradient */
    border-radius: 1000px;
    outline: none;
    cursor: pointer;
    overflow: hidden; 
    opacity: 1 !important;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    
    /* UPDATED: Match the track height to create a perfect round end */
    width: 45px; 
    height: 45px;
    
    border-radius: 50%;
    background: #fffecc !important; /* Solid Cream */
    cursor: pointer;
    border: none;
    

    position: relative;
    z-index: 2;
    opacity: 1 !important;
    transition: transform 0.1s;
}

/* Firefox Support */
.slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fffecc !important;
    cursor: pointer;
    border: none;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
}

.slider-input::-moz-range-progress {
    background-color: #fffecc !important;
    height: 12px;
    border-radius: 500px;
    opacity: 1 !important;
}

.slider-input::-webkit-range-progress {
    background-color: #fffecc !important;
    height: 12px;
    border-radius: 500px;
    opacity: 1 !important;
}

.slider-input::-moz-range-track {
    background-color: #fffecc20;
    height: 12px;
    border-radius: 1000px;
}

.slider-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fffecc;
    cursor: pointer;
    border: none;
}

/* Add these styles to the end of styles.css */

/* Projects Button (Top Left) */
#btn-projects {
    background-color: transparent;
    border: 2px solid #fffecc00;
    box-shadow: 0px 0px 0px 0px #00000000;
    outline: none;
    transition: all 0.2s ease-in-out;
}

#btn-projects:hover {
    backdrop-filter: blur(5px);
    background-color: var(--panel-bg);
    border: 2px solid var(--border-color);
    outline: none !important;
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
}

/* Save Indicator (Near Title) */
.save-indicator {
    position: absolute;
    right: -100px; /* Position it outside the input box */
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--panel-bg);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: scale(0.6);
    filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
}

.save-indicator.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}