@import url("/_content/Scribbleo.Razor/StaticFonts.css");

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('/_content/Scribbleo.Razor.Components/srcLibraryStyles.css');

@namespace url(http://www.w3.org/1999/xhtml);
@namespace svg url(http://www.w3.org/2000/svg);

html, body {
    font-family: 'Fredoka One', cursive;
    font-family: 'Poppins', sans-serif;
    background-color: #1d1e1f;
    color: var(--white) !important;
    font-size: 0.85em;
    user-select: none;
    /*
        This would be Nice!!!
        cursor: url("/_content/scribbleo.razor/images/cursor.png"), auto;

    */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka One', sans-serif;
}

.navbar {
    padding: 0 15px 0 15px;
}

.nav-link {
    cursor: pointer;
}

.navbar-dark {
    background-color: var(--nav-back) !important;
    color: var(--white) !important;
}

.navbar-brand {
    font-family: 'Fredoka One', sans-serif;
    color: var(--white) !important;
    line-height: 0.8em;
    padding: 0;
    cursor: pointer;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.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: var(--white);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


svg|*.reset {
    /* need to reset the default colour back to black that was altered in html above */
    background-color: transparent;
    color: black;
    overflow: hidden;
    box-sizing: content-box;
    line-height: normal;
    text-align: start;
    /*text-size-adjust: auto;*/
    vertical-align: baseline;
}

/* animation canvas */
svg|*.ruler-text {
    font: bold 0.6em Poppins;
    fill: #888888;
    text-anchor: start;
}

/* animation timeline */
svg|*.timelineFill {
    fill: var(--white);
}

svg|*.timelineStroke {
    stroke: var(--nav-border);
}

/* graph */
svg|*.graph-line {
    stroke: rgba(255,255,255,0.1);
    stroke-width: 1;
}

svg|*.graph-line-faint {
    stroke: rgba(255,255,255,0.05);
    stroke-width: 1;
}

svg|*.graph-text {
    font: bold 0.5em Poppins;
    fill: rgba(255,255,255,0.3);
    text-anchor: middle;
}




svg|*.graph-expand-button {
    stroke: var(--white-low);
    fill: none;
}

svg|*.scrub {
    fill: var(--orange);
    stroke: var(--orange);
    stroke-width: 3;
}

svg|*.graph-layer-selected {
    fill: none;
    stroke: var(--orange);
    stroke-width: 1;
}

svg|*.timeline-layer-root {
    fill: var(--blue-low);
    stroke: var(--blue);
    stroke-width: 1;
}

svg|*.timeline-layer-sub {
    fill: var(--blue-high);
    stroke: var(--blue-low);
    stroke-width: 1;
}

/* Animation Actions
  None       0
  Show       1
  Hide       2
  Draw       3
  Clear      4
  FadeIn     5
  FadeOut    6
  Move       7
  Scale      8
  Rotate     9
  TypeText  10
*/


/* None action */
svg|*.timeline-layer-action-0 {
    fill: none;
    stroke: none;
    stroke-width: 0;
}
/* Show action */
svg|*.timeline-layer-action-1 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* Hide action */
svg|*.timeline-layer-action-2 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* Draw action */
svg|*.timeline-layer-action-3 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* Clear action */
svg|*.timeline-layer-action-4 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* FadeIn action */
svg|*.timeline-layer-action-5 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* FadeOut action */
svg|*.timeline-layer-action-6 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* Move action */
svg|*.timeline-layer-action-7 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* Scale action */
svg|*.timeline-layer-action-8 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* Rotate action */
svg|*.timeline-layer-action-9 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* TypeText action */
svg|*.timeline-layer-action-10 {
    fill: #fc49127e;
    stroke: #fc4912;
    stroke-width: 1;
}
/* Premium UI Panels */
/* PERF: No backdrop-filter here — blur compositing on multiple stacked panels
   adds 15-25ms of GPU paint cost per interaction on the Project page hot path.
   The translucent background already achieves the glassmorphism look. */
.pro-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    margin-left: 2px;
    margin-right: 2px;
}

.pro-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white-low);
    margin-bottom: 8px;
    display: block;
    font-family: 'Poppins', sans-serif;
}

.pro-value-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pro-input-group {
    display: flex;
    align-items: center;
    background: var(--nav-back-low);
    border-radius: 4px;
    padding: 2px 8px;
}

.pro-input-group span {
    color: var(--grey);
    font-size: 0.8em;
    margin-left: 4px;
}

/* Pro List Items */
.pro-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.pro-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.pro-list-item.selected {
    background: rgba(255, 133, 27, 0.1);
    border-color: rgba(255, 133, 27, 0.3);
}

.pro-list-item-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-icon-box {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.pro-list-item-content {
    flex-grow: 1;
    min-width: 0;
}

.pro-list-item-title {
    display: flex;
    flex-direction: column;
}

.pro-list-item-title span {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-truncate: ellipsis;
}

.pro-list-item-title small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.pro-list-item-actions {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.pro-list-item:hover .pro-list-item-actions {
    opacity: 1;
}

/* Resource List Container */
.resource-list-container {
    border: none !important;
    padding: 0 !important;
}

/* Pro Panels */
.pro-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: visible;
    margin-bottom: 16px;
    margin-left: 2px;
    margin-right: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.pro-panel-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pro-panel-body {
    padding: 16px;
}

.pro-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.pro-input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0 4px;
    gap: 2px;
    transition: all 0.2s ease;
    min-width: 75px;
}

.pro-input-group:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(255, 133, 27, 0.2);
}

.pro-input-group label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.pro-input-group input {
    background: transparent !important;
    border: none !important;
    color: var(--white) !important;
    font-size: 13px !important;
    padding: 6px 0 !important;
    width: 100%;
    text-align: right;
    box-shadow: none !important;
}

.pro-input-group span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

/* Scrollbars */
.pro-panel-body::-webkit-scrollbar {
    width: 6px;
}

.pro-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.pro-panel-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Modern Tabs */
.pro-tabs {
    display: flex;
    gap: 24px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.pro-tab {
    padding: 12px 4px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pro-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.pro-tab.active {
    color: var(--white);
}

.pro-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--orange);
    box-shadow: 0 0 10px rgba(255, 133, 27, 0.5);
}

/* Value Row (side by side) */
.pro-value-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pro-value-row > * {
    flex: 1;
    min-width: 0;
}

/* Marker Gallery */
.marker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 8px;
}

.marker-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.marker-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--orange);
    transform: translateY(-2px);
}

.marker-item.selected {
    background: rgba(255, 133, 27, 0.1);
    border-color: var(--orange);
    box-shadow: 0 0 15px rgba(255, 133, 27, 0.2);
}

.marker-thumb {
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-name {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Pro Button Tweaks */
.btn-outline-info {
    border-color: rgba(0, 123, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.btn-outline-info:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.6);
    color: var(--white);
}

.bg-white-5 { background-color: rgba(255, 255, 255, 0.05) !important; }
.border-white-10 { border: 1px solid rgba(255, 255, 255, 0.1) !important; }

/* Adobe-like tightness */
.pro-input-group label {
    font-size: 11px;
    opacity: 0.6;
    margin-bottom: 2px;
}

.pro-input-group input, 
.pro-input-group select {
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    color: #fff !important;
    font-size: 11px !important;
    height: 28px !important;
    padding: 0 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 4px !important;
}

.pro-input-group input:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 2px rgba(255, 133, 27, 0.2) !important;
    outline: none !important;
}

.pro-panel-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
}

/* 2026 Design Tokens */
:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --accent-glow: 0 0 20px rgba(255, 133, 27, 0.15);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Premium Header */
.navbar-2026 {
    background: rgba(10, 10, 12, 0.85) !important;
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 1.5rem !important;
    height: 60px;
    transition: all 0.3s ease;
}

.navbar-brand-2026 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--white) !important;
    cursor: pointer;
    padding: 0 !important;
}



/* Pro Buttons */
.btn-pro {
    padding: 10px 24px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-pro-save {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-pro-save:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Progress Button Logic */
.btn-pro {
    position: relative;
    overflow: hidden;
}

.btn-pro::after {
    content: 'SAVING...';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.btn.loading:not(.btn-viewport-toolbar) {
    color: transparent !important;
    cursor: wait;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn.loading:not(.btn-viewport-toolbar)::after {
    opacity: 1;
    animation: shimmer-progress 1.5s infinite linear;
}

@keyframes shimmer-progress {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Viewport Toolbar Loading State (Pulse animation) */
.btn-viewport-toolbar.loading {
    cursor: wait;
    pointer-events: none;
    animation: pulse-icon-subtle 0.8s infinite alternate ease-in-out;
}

@keyframes pulse-icon-subtle {
    0% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.1); color: #0096ff !important; }
}

.btn-pro-export {
    background: linear-gradient(135deg, var(--orange), #ff4d00);
    border: none;
    box-shadow: var(--accent-glow);
}

.btn-pro-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(255, 133, 27, 0.3);
}

/* Layer List Modernization */
.layer-item-2026 {
    background: transparent;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 4px;
}

.layer-item-2026:hover {
    background: rgba(255, 255, 255, 0.03);
}

.layer-item-2026.selected {
    background: rgba(255, 133, 27, 0.08);
    box-shadow: inset 2px 0 0 var(--orange);
}

.layer-thumb-2026 {
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #f0f0f2;
}

/* 2026 Slick Modals */
.btn-content-action {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    letter-spacing: 0.02em;
    padding: 6px 16px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-content-action:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.modal-content {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.5rem 1.5rem 1rem 1.5rem !important;
}

.modal-title {
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    font-size: 1.25rem !important;
}

.modal-body {
    padding: 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1rem 1.5rem 1.5rem 1.5rem !important;
}

/* Off-white Preview Background */
.preview-bg-offwhite {
    background-color: #f0f0f2 !important;
    border-radius: 8px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Side Panel Padding */
.pro-side-panel {
    padding: 0;
    position: relative;
    transition: padding 0.3s ease;
    height: 100%;
}

.pro-side-panel.collapsed {
    padding: 0;
}

.side-panel-toggle {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 80px;
    background: var(--nav-back);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
    border-left: none;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

.side-panel-toggle.open {
    right: -16px;
    left: auto;
    border-radius: 12px;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.side-panel-toggle:hover {
    background: #4b5155;
    color: white;
}

.pro-side-panel.collapsed .side-panel-toggle {
    right: 8px;
    width: 32px;
    height: 80px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 12px;
}

.pro-tabs.collapsed {
    display: none;
}

/* Touch Optimizations */
@media (pointer: coarse) {
    .pro-tab {
        padding: 16px 8px;
        min-height: 44px;
    }
    
    .btn-pro {
        padding: 12px;
        min-height: 44px;
    }
    
    .side-panel-toggle {
        width: 32px;
        height: 64px;
    }
    
    .pro-input-group {
        min-height: 44px;
    }
}

.pro-side-card {
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

/* Properties Tab Tightening */
.prop-thumb-small {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
}

.marker-preview-large {
    width: 120px !important;
    height: 120px !important;
    background: #f0f0f2;
    border-radius: 12px;
    margin: 10px auto;
}

/* Marker Selection & Grid */
.border-orange {
    border: 2px solid var(--orange) !important;
    box-shadow: 0 0 15px rgba(255, 133, 27, 0.2) !important;
}

.marker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.marker-item {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
}

.marker-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.marker-item.selected {
    border-color: var(--orange);
    background: rgba(255, 133, 27, 0.05);
}

.marker-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f2;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Main Nav Active State with Orange Underline */
/* Fix for Audio button drawing too much attention */
.btn-outline-info {
    border-color: rgba(0, 191, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.btn-outline-info:hover {
    background: rgba(0, 191, 255, 0.1) !important;
    border-color: rgba(0, 191, 255, 0.5) !important;
    color: #fff !important;
}

/* Align Pro Tabs with Nav Style */
.pro-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    padding-left: 8px;
}

.pro-tab {
    position: relative;
    padding: 10px 16px !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700 !important;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.pro-tab.active {
    opacity: 1;
    color: var(--orange) !important;
}

.pro-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.pro-tab.active::after {
    transform: scaleX(1);
}

.pro-tab:hover {
    opacity: 0.8;
}
/* 2026 Asset Grid Improvements */
.asset-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    aspect-ratio: 1/1 !important;
    height: var(--item-size, 130px) !important;
    width: var(--item-size, 130px) !important;
}

.asset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5) !important;
    z-index: 10;
}

.asset-card:hover .asset-hover-overlay,
.asset-card:hover .asset-delete-btn {
    opacity: 1 !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scale-0-7 {
    transform: scale(0.7);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.content-browser-modal .modal-dialog {
    max-width: 90% !important;
    height: 85vh !important;
    margin: 2vh auto !important;
}

.content-browser-modal .modal-content {
    height: 100% !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: #1a1a1a !important;
}

.content-browser-modal .modal-body {
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: calc(100% - 60px) !important;
}

/* Layout Unlock for Assets Page (REINFORCED) */
.main-assets-page {
    display: block !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    padding-bottom: 150px !important; /* Space for the last row */
}

.asset-list-container {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

/* Ensure parents are unlocked */
body:has(.main-assets-page),
.mainView:has(.main-assets-page) {
    overflow: visible !important;
    height: auto !important;
    position: relative !important;
}

/* Context-Aware Asset Sizing */

/* 1. Selection Modal Context */
.content-browser-modal .list-item,
.content-browser-modal .asset-card {
    aspect-ratio: 1/1 !important;
    height: var(--item-size, 130px) !important;
    width: var(--item-size, 130px) !important;
    max-height: var(--item-size, 130px) !important;
    overflow: hidden !important;
}

/* 2. Main Assets Page Context (ABSOLUTE FORCE-SYMMETRY) */
.main-assets-page .list-item {
    aspect-ratio: 1/1 !important;
    height: var(--item-size, 130px) !important;
    width: var(--item-size, 130px) !important;
    max-height: var(--item-size, 130px) !important;
    min-height: var(--item-size, 130px) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.main-assets-page .asset-card {
    aspect-ratio: 1/1 !important;
    height: 100% !important;
    width: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Ensure inner container fills the square */
.main-assets-page .asset-card > div {
    height: 100% !important;
    width: 100% !important;
}

/* Absolute Hover Isolation (V3) */
.main-assets-page .asset-hover-overlay,
.main-assets-page .asset-delete-btn {
    display: none !important;
    pointer-events: none;
}

.main-assets-page .asset-card:hover .asset-hover-overlay,
.main-assets-page .asset-card:hover .asset-delete-btn,
.main-assets-page .list-item:hover .asset-hover-overlay,
.main-assets-page .list-item:hover .asset-delete-btn {
    display: flex !important;
    pointer-events: auto;
}

/* Audio Thumbnail & Waveform Styles (Globalized) */
.audio-thumb-gradient {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%) !important;
    transition: transform 0.5s ease;
}

.waveform-visual {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 60px;
}

.waveform-bar {
    width: 6px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bar-1 { height: 18px; opacity: 0.4; }
.bar-2 { height: 32px; opacity: 0.6; }
.bar-3 { height: 48px; opacity: 0.8; }
.bar-4 { height: 60px; opacity: 1; }
.bar-5 { height: 42px; opacity: 0.8; }
.bar-6 { height: 28px; opacity: 0.6; }
.bar-7 { height: 16px; opacity: 0.4; }

.asset-card:hover .waveform-bar {
    animation: waveform-jump 0.5s ease-in-out infinite alternate;
}

@keyframes waveform-jump {
    from { transform: scaleY(1); }
    to { transform: scaleY(1.2); }
}

.selected-assets-panel {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px);
    z-index: 100;
    flex-shrink: 0 !important;
    width: 100% !important;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Properties Panel Modernization - Mockup Refined */
.pro-group {
    background: #2b2c2d;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pro-group-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.pro-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pro-label {
    flex: 0 0 85px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.pro-input-box {
    display: flex;
    align-items: center;
    background: #1d1e1f;
    border-radius: 6px;
    padding: 0 8px;
    height: 32px;
    border: 1px solid transparent;
}

.pro-input-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    outline: none;
}

.pro-input-prefix {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 800;
    margin-right: 4px;
}

.pro-input-suffix {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    margin-left: 4px;
}

/* Premium Slider */
.pro-slider-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: #ffffff;
    border-radius: 3px;
    outline: none;
}

.pro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
    border: 2px solid white;
}

/* Buttons */
.pro-btn-square {
    width: 32px;
    height: 32px;
    background: #3a3b3c;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.pro-btn-square:hover {
    background: #4a4b4c;
}

.pro-btn-record {
    background: #ff5722;
}

.pro-btn-record.inactive {
    background: #3a3b3c;
    color: rgba(255, 255, 255, 0.4);
}

.pro-link-btn {
    width: 32px;
    height: 32px;
    background: #3a3b3c;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
}

.pro-link-btn.active {
    background: #4a4b4c;
    border: 1px solid #007bff;
    color: #007bff;
}

/* Header Card */
.pro-header-card {
    background: #2b2c2d;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.pro-header-top {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.pro-thumb {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pro-title-box {
    flex: 1;
    background: #1d1e1f;
    border-radius: 6px;
    padding: 12px;
    height: fit-content;
    color: #999;
    font-weight: 700;
    font-size: 14px;
}

/* Reset Buttons at Bottom */
.pro-reset-container {
    display: flex;
    gap: 12px;
    margin: 20px 16px 0 16px;
}

.pro-btn-reset-large {
    flex: 1;
    height: 48px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ff5722;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.pro-btn-reset-large:hover {
    background: rgba(255, 87, 34, 0.05);
    border-color: #ff5722;
}

/* Panel Overflow Utility */
.allow-overflow, 
.allow-overflow > .panel, 
.allow-overflow > .view {
    overflow: visible !important;
    contain: none !important;
}

/* Viewport Toolbar Buttons */
.btn-viewport-toolbar {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    font-size: 18px !important;
    opacity: 0.8;
    z-index: 10002 !important;
}

.btn-viewport-toolbar:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: var(--white) !important;
}

.btn-viewport-toolbar.active {
    background: rgba(0, 150, 255, 0.1) !important;
    border-color: rgba(0, 150, 255, 0.3) !important;
    color: var(--blue) !important;
}

/* Fix Dropdown Menus */
.dropdown-menu {
    background: #232425 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8) !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 30001 !important;
    padding: 8px 0 !important;
    border-radius: 12px !important;
    margin-right: 10px !important;
}

.dropDown-exit {
    z-index: 30000 !important;
}

.modal {
    z-index: 50001 !important;
}

.modal-backdrop {
    z-index: 50000 !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.05) !important;
    color: var(--white) !important;
}

/* Viewport Navigation Cursors */
.cursor-grab, .cursor-grab * {
    cursor: grab !important;
}

.cursor-grabbing, .cursor-grabbing * {
    cursor: grabbing !important;
}

/* Layer List Items */
.layer-item {
    position: relative;
    display: flex;
    flex-direction: column;
    color: var(--white);
    user-select: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.layer-item-content {
    display: flex;
    align-items: center;
    height: 44px;
    padding-right: 8px;
    background: transparent;
    transition: background-color 0.1s ease;
    cursor: grab;
}

.layer-item:hover > .layer-item-content {
    background: rgba(255,255,255,0.02);
}

.layer-item.selected > .layer-item-content {
    background: rgba(255,165,0,0.1);
    box-shadow: inset 2px 0 0 var(--orange);
}

.layer-item.selected .layer-text {
    color: var(--orange);
    font-weight: 600;
}

/* Actions */
.layer-actions {
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.layer-item:hover > .layer-item-content .layer-actions,
.layer-item.selected > .layer-item-content .layer-actions {
    opacity: 1;
}

.layer-actions-left {
    min-width: 52px;
    border-right: 1px solid rgba(255,255,255,0.05);
    margin-right: 8px;
}

.btn-layer-action {
    padding: 4px;
    color: rgba(255,255,255,0.5) !important;
}

.btn-layer-action:hover {
    color: var(--white) !important;
}

.btn-layer-expand {
    padding: 0 4px;
    color: rgba(255,255,255,0.5) !important;
}

.layer-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    opacity: 0.9;
}

/* Drag and Drop */
.layer-item:active > .layer-item-content {
    cursor: grabbing;
}

.drop-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--orange);
    pointer-events: none;
    z-index: 10;
}

.drop-above {
    top: -1px;
}

.drop-below {
    bottom: -1px;
}

.drop-inside {
    top: 0;
    bottom: 0;
    height: auto;
    background-color: rgba(255,165,0,0.2);
    border: 2px solid var(--orange);
}

.empty-group-drop {
    height: 44px;
    display: flex;
    align-items: center;
    border: 1px dashed rgba(255,255,255,0.1);
    margin: 4px 8px 4px 44px;
    border-radius: 4px;
}

.layer-group-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.05);
}
