﻿:root {
    --primary-color: #3498db;
    --bg-color: white;
    --text-color: black;
    --hover-color: lightgray;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-label: #64748b;
    --accent: #3b82f6; /* Modern Blue */
    --accent-hover: #2563eb;
    --bar-bg: #2d2d30;
    --hover-bg: #3e3e42;
    --accent: #007acc; /* VS Blue */
    --text: #cccccc;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.loader-overlay {
    position: absolute;
    top: 50px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: White;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    z-index: 10;
}

@media (max-width: 640.98px) {
    .loader-overlay {
        left: 0px;
        width: calc(100vw - 0);
    }
}

@media (min-width: 641px) {
    .loader-overlay {
        left: 80px;
        width: calc(100vw - 80px);
    }
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09d;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* The 3D Layer */
#babylonCanvas {
    position: fixed;
    top: 0;
    left: 200px;
    width: 100vw;
    height: 100vh;
    touch-action: none; /* Required for mobile touch rotation */
    z-index: 1;
}

@media (max-width: 640.98px) {
    #babylonCanvas {
        left: 0px;
        top: 125px;
        top: 165px;
        width: 100vw;
        height: calc(100vh - 165px);
    }
}

@media (min-width: 641px) {
    #babylonCanvas {
        left: 85px;
        top: 0px;
        /*top: 285px;*/
        width: calc(100vw - 85px);
    }
}

/* The UI Overlay Layer */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to pass through to 3D scene */
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

/* Make buttons and panels clickable again */
.ui-panel {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); /* Modern "Glassmorphism" effect */
    border-radius: 15px;
    padding: 15px;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Mobile-friendly large buttons */
.btn-mobile {
    padding: 12px 24px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: white;
    width: 100%; /* Full width on mobile */
    margin-top: 10px;
    cursor: pointer;
}

/* Mobile-friendly large buttons */
.top-right-fixed-logo {
    /*pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    /*border-radius: 15px;
    padding: 15px;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: fixed;
    top: 15px;
    right: 15px;*/

    pointer-events: auto;
    /*background: rgba(255, 255, 255, 0.85);*/
    /*backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    border-radius: 15px;
    padding: 0px;
    color: white;
    /*box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);*/
    z-index: 1999;
    position: fixed;
    bottom: 2px;
    left: 2px;
    /*display: flex;*/
    /*justify-content: flex-end;*/
    text-align: right;
}

/* Mobile-friendly large buttons */
.top-right-fixed {
    /*pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    /*border-radius: 15px;
    padding: 15px;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: fixed;
    top: 15px;
    right: 15px;*/

    pointer-events: auto;
    /*background: rgba(255, 255, 255, 0.85);*/
    /*backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    border-radius: 15px;
    padding: 0px;
    color: white;
    /*box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);*/
    z-index: 1000000;
    position: fixed;
    top: 140px;
    right: 5px;
    /*display: flex;*/
    /*justify-content: flex-end;*/
    text-align: right;
}

/* Mobile-friendly large buttons */
.bottom-right-fixed {
    /*pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    /*border-radius: 15px;
    padding: 15px;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: fixed;
    top: 15px;
    right: 15px;*/

    pointer-events: auto;
    /*background: rgba(255, 255, 255, 0.85);*/
    /*backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    border-radius: 15px;
    padding: 0px;
    color: white;
    /*box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);*/
    z-index: 999;
    position: fixed;
    bottom: 5px;
    right: 5px;
    /*display: flex;*/
    /*justify-content: flex-end;*/
    text-align: right;
}

/* Mobile-friendly large buttons */
.bottom-left-fixed {
    /*pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    /*border-radius: 15px;
    padding: 15px;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: fixed;
    top: 15px;
    right: 15px;*/

    pointer-events: auto;
    /*background: rgba(255, 255, 255, 0.85);*/
    /*backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    border-radius: 15px;
    padding: 0px;
    color: white;
    /*box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);*/
    z-index: 999;
    position: fixed;
    bottom: 5px;
    left: 5px;
    /*display: flex;*/
    /*justify-content: flex-end;*/
    text-align: right;
}

/* Mobile-friendly large buttons */
.top-left-fixed {
    pointer-events: auto;
    /*background: rgba(255, 255, 255, 0.85);*/
    /*backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    border-radius: 15px;
    padding: 0px;
    color: white;
    /*box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);*/
    z-index: 999;
    position: fixed;
    top: 140px;
    left: 5px;
}

/* Mobile-friendly large buttons */
.top-left-fixed-project-info {
    pointer-events: auto;
    /*background: rgba(255, 255, 255, 0.85);*/
    /*backdrop-filter: blur(10px);*/ /* Modern "Glassmorphism" effect */
    border-radius: 0px;
    padding: 0px;
    color: white;
    /*box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);*/
    z-index: 999;
    position: fixed;
    top: 0px;
    left: 0px;
    /*background-color: white;*/
    padding-left: 2px;
    padding-top: 5px;
    padding-bottom: -0px;
    padding-top: 0px;
    /*box-shadow: 0px 0px 20px 20px rgba(0, 0, 0, 0.37);*/
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    /*background-color: white;*/
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

@media (max-width: 640.98px) {
    .top-left-fixed {
        left: 5px;
        /*width: 100vw;*/
    }
    .bottom-left-fixed {
        left: 5px;
        /*width: 100vw;*/
    }

    .top-left-fixed-project-info {
        left: 0px;
        width: 100vw;
        top: 55px;
        padding-top: 10px;
    }

    .top-right-fixed-logo {
        /*top: 60px;*/
        left: 5px;
    }

    .top-right-fixed {
        top: 145px;
    }

    .top-left-fixed {
        top: 145px;
    }
}

@media (min-width: 641px) {
    .top-left-fixed {
        left: 90px;
        /*width: calc(100vw - 245px);*/
    }
    .bottom-left-fixed {
        left: 90px;
        /*width: calc(100vw - 245px);*/
    }

    .top-left-fixed-project-info {
        left: 85px;
        width: calc(100vw - 60px);
        top: 0px;
    }

    .top-right-fixed-logo {
        left: 90px;
    }

    .top-right-fixed {
        top: 85px;
    }

    .top-left-fixed {
        top: 85px;
    }
}


/* Status text styling (optional) */
.status-text {
    font-size: 18px;
    color: #333;
    min-width: 40px; /* Optional: adds consistent spacing */
    text-align: left;
}

.iframe-container {
    position: fixed; /* Positions the container relative to the browser window */
    left: 0px; /* Aligns the left edge to the left of the viewport */
    width: 100%; /* Makes the container span the full width of the viewport */
    height: 100%;
    padding: 0px;
    /*height: 100%;*/ /* Makes the container span the full height of the viewport */
    z-index: 9; /* Ensures it is above everything else */
    /* Add other desired styles, e.g., background-color for opacity */
    background-color: #282828;
    z-index: 100;
    padding: 0px
}

    .iframe-container iframe {
        width: calc(100% - 100px);
        height: 100%;
        border: none; /* Removes the default iframe border */
        margin-left: 50px;
        margin-right: 50px;
    }

@media (max-width: 640.98px) {
    .iframe-container {
        margin-left: 0px;
        width: calc(100vw);
        top:160px; /* Aligns the top edge to the top of the viewport */
    }
}

@media (min-width: 641px) {
    .iframe-container {
        left: 30px;
        width: calc(100vw + 20px);
        top: 90px; /* Aligns the top edge to the top of the viewport */
        height: calc(100vh - 90px);
    }
}

/* Mobile Tweak */
/*@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .header-search {
        max-width: 100%;
    }
}*/


/* Ensure your other content is visible and not hidden underneath by default */
.other-content {
    margin-top: 50px; /* Example: pushes body content down if your iframe is fixed to the top */
}



/* --- Container --- */
.toggle-container-left {
    text-align: left;
    position: relative;
    width: 100px;
    height: 40px;
    margin: 0px;
    margin-left: 0px;
    margin-right: auto; /* Optional: explicitly set right margin to 0 */
    width: 100px; /* Must have a width less than 100% */
}

/* --- Container --- */
.toggle-container {
    text-align: right;
    position: relative;
    width: 100px;
    height: 40px;
    margin: 5px;
    margin-left: 0px;
    margin-right: 5px; /* Optional: explicitly set right margin to 0 */
    width: 100px; /* Must have a width less than 100% */
    display:flex;
}

/* --- Hide the actual checkbox input --- */
.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* --- The Label / Track --- */
.toggle-label {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ddd; /* OFF state color */
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Important: clips the sliding text */
    transition: background-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Inner Text Container (slides) --- */
.toggle-inner {
    display: flex;
    width: 200%; /* Make it double width to hold both text spans */
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out; /* Crucial animation */
    /* Text initial position: ON is hidden on the left, OFF is visible */
    transform: translateX(-50%);
}

/* --- ON and OFF Text Styling --- */
.text-on, .text-off {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%; /* Each takes half of the double-width container */
    height: 100%;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    user-select: none; /* Prevents text selection on double-click */
}

.text-on {
    background-color: #1ABC9C; /* ON state color */
    opacity: 0; /* Initially hidden */
    /*padding-left: 10px;*/
}

.text-off {
    background-color: #3498DB; /* OFF state color */
    padding-left: 0px;
}

/* --- The Sliding Switch Button (Circle) --- */
.toggle-switch {
    display: block;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 5px;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2; /* Ensures it's on top of the text */
}

/* =========================================
   === STYLES FOR THE :CHECKED (ON) STATE ===
   ========================================= */

/* 1. Change the track color */
.toggle-checkbox:checked + .toggle-label {
    background-color: #4cd964;
}

    /* 2. Slide the text container right to show 'ON' */
    .toggle-checkbox:checked + .toggle-label .toggle-inner {
        transform: translateX(0);
    }

    /* 3. Adjust text visibility */
    .toggle-checkbox:checked + .toggle-label .text-on {
        opacity: 1;
    }

    .toggle-checkbox:checked + .toggle-label .text-off {
        opacity: 0;
    }

    /* 4. Slide the switch circle to the right */
    .toggle-checkbox:checked + .toggle-label .toggle-switch {
        transform: translateX(60px); /* 100px width - 34px circle - 6px padding */
    }

/* --- Focus State for Accessibility --- */
.toggle-checkbox:focus + .toggle-label {
    /*box-shadow: 0 0 0 3px rgba(76, 217, 100, 0.5);*/
}

.custom-select {
    position: relative;
    display: block;
    max-width: 300px;
    min-width: 200px;
    height: 45px;
    background-color: var(--bg-color);
    border-radius: 8px;
    border: 1px solid #3e4f5f;
    transition: all 0.3s ease;
    margin: 7px;
}

    /* Hide the default arrow */
    .custom-select select {
        appearance: none;
        width: 100%;
        height: 100%;
        background: none;
        border: none;
        padding: 0 15px;
        color: var(--text-color);
        font-family: 'Segoe UI', Tahoma, sans-serif;
        font-size: 1rem;
        cursor: pointer;
        outline: none;
    }

    /* Custom Arrow using CSS Shapes */
    .custom-select .arrow {
        position: absolute;
        top: 18px;
        right: 15px;
        width: 0;
        height: 0;
        pointer-events: none;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid var(--primary-color);
    }

    /* Hover & Focus Effects */
    .custom-select:hover {
        border-color: var(--primary-color);
        box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    }

option:hover {
    background-color: red !important;
    color: white;
}




.tree-container {
    font-family: 'Segoe UI', sans-serif;
    color: #d1d1d1;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #3e4f5f;
    margin: 7px;
}

ul {
    list-style-type: none;
    margin: 0;
    padding-left: 20px;
    border-left: 1px solid #444;
}

li {
    margin: 5px 0;
    position: relative;
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 4px 8px;
    display: flex;
    align-items: center;
}

    summary::before {
        content: '▶';
        display: inline-block;
        font-size: 10px;
        margin-right: 8px;
        transition: transform 0.2s;
    }

details[open] > summary::before {
    transform: rotate(90deg);
}

.folder {
    font-weight: bold;
    color: #569cd6;
}

.file {
    color: var(--text-color);
    padding-left: 26px;
}

summary:hover {
    background: var(--hover-color);
    border-radius: 3px;
}





.listbox-container {
    width: 100%;
    max-width: 350px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.listbox-header {
    background: white;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-color);
    text-transform: uppercase;
    border-bottom: 1px solid #333;
}

.listbox-scroll {
    height: 250px; /* Fixed height for scrolling */
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .listbox-scroll li {
        padding: 10px 15px;
        color: #ccc;
        cursor: pointer;
        transition: all 0.15s ease;
        border-left: 3px solid transparent;
    }

        /* The "Nice" Hover & Selection Colors */
        .listbox-scroll li:hover {
            background: #2a2d2e;
            color: #fff;
        }

        .listbox-scroll li.selected {
            background: #37373d;
            color: #3498db;
            border-left: 3px solid #3498db;
        }

    /* Custom Scrollbar Styling */
    .listbox-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .listbox-scroll::-webkit-scrollbar-track {
        background: #1e1e1e;
    }

    .listbox-scroll::-webkit-scrollbar-thumb {
        background: #3f3f3f;
        border-radius: 4px;
    }

        .listbox-scroll::-webkit-scrollbar-thumb:hover {
            background: #4f4f4f;
        }




.top-bar {
    display: flex;
    align-items: center;
    background: white;
    height: 5px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 13px;
    color: var(--text);
    user-select: none;
    z-index:5000;
}

.bottom-bar {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--bar-bg);
    height: 50px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 13px;
    color: var(--text);
    user-select: none;
    z-index: 5000;
    bottom: 0px;
    border-top: 1px solid #234863;
}

.app-logo {
    padding: 0 15px;
    font-weight: bold;
}

.brand {
    color: var(--accent);
}

.menu-system {
    display: flex;
    height: 100%;
}

.menu-item {
    padding: 0 12px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

    .menu-item:hover {
        background: var(--hover-bg);
    }

/* The Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bar-bg);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
    border: 1px solid #444;
}

.menu-item:hover .dropdown {
    display: block;
}

.dropdown li {
    padding: 8px 20px;
    white-space: nowrap;
}

    .dropdown li:hover {
        background: var(--accent);
        color: white;
    }

.divider {
    height: 1px;
    background: #444;
    margin: 5px 0;
}

.window-controls {
    margin-left: auto;
    padding-right: 10px;
}

.product-input-card {
    background: var(--card-bg);
    padding: 24px;
    padding-top: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 320px;
    min-width: 320px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    border: 1px solid var(--border-color);
    margin: 5px;
    z-index: 50000000;
}

.section-title {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 600;
}

.input-grid {
    display: block;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .field-group label {
        font-size: 0.85rem;
        color: var(--text-label);
        font-weight: 500;
        text-align:left;
    }

    .field-group input,
    .field-group select,
    .field-group textarea {
        padding: 10px 12px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        font-size: 0.95rem;
        color: var(--text-main);
        transition: all 0.2s ease;
        background: #fff;
        cursor: pointer;
    }

        /* Focus State - The most important part for "Nice" UI */
        .field-group input:focus,
        .field-group select:focus,
        .field-group textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

.full-width {
    grid-column: span 2;
}

.save-btn {
    margin-top: 10px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

    .save-btn:hover {
        background: var(--accent-hover);
    }



/* Tab Header Styling */
.tab-header {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 7px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-label);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

    .tab-btn:hover {
        color: var(--accent);
    }

    .tab-btn.active {
        color: var(--accent);
        border-bottom: 2px solid var(--accent);
    }

/* Hide content by default */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    /*background: #f8fafc;*/
    border-bottom: 1px solid var(--border-color) !important;
    background-color:transparent;
    cursor:pointer;
}

.main-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.minimize-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-label);
}

/* The Restore Button when Minimized */
.restore-btn {
    /*position: fixed;*/
    /*top: 20px;*/
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #3498DB;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    /*box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);*/
    z-index: 1001;
    font-weight: 600;
    animation: popIn 0.3s ease;
    margin: 5px;
    min-width: 180px;
    max-width: 180px;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.inverted-image {
    /* Fully inverts all colors */
    filter: invert(100%);
    /* Use vendor prefix for older versions of Safari/Chrome */
    -webkit-filter: invert(100%);
}









