/**
 * TCG Card Studio Pro v2.0
 * Styles - Dark Theme with Rainbow Glow Effects
 */

:root {
    --bg-primary: #0C0C0C;
    --bg-secondary: #0C0C0C;
    --bg-tertiary: #1a1d24;
    --bg-quaternary: #252a33;
    
    --sidebar-bg: #00F0FF;
    --sidebar-bg-dark: #00c4cc;
    --sidebar-bg-light: #5ff5ff;
    --neon-glow: 0 0 8px #00F0FF, 0 0 15px rgba(0, 240, 255, 0.5);
    
    --canvas-bg: #0d0f12;
    --canvas-grid: rgba(0, 240, 255, 0.08);
    --canvas-viewport-bg: #0a0c0f;
    
    --accent-primary: #00F0FF;
    --accent-secondary: #7B2CBF;
    --accent-tertiary: #F72585;
    --accent-danger: #ef4444;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b5;
    --text-muted: #606075;
    --text-disabled: #404055;
    
    --border-color: #2a2a40;
    --border-light: #3a3a50;
    --border-dark: #1a1a30;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
    --shadow-glow: 0 0 20px rgba(107, 127, 255, 0.4);
    
    --transition-fast: 100ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --sidebar-width: 260px;
    --topbar-height: 48px;
    --toolbar-height: 40px;
    --page-bar-height: 80px;
    --canvas-padding: 130px;
    
    --glow-gradient: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
}

/* ==================== RAINBOW GLOW ANIMATION ==================== */
@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* ==================== GLOW-ON-HOVER BASE CLASS ==================== */
.glow-on-hover {
    border: none;
    outline: none;
    color: #fff;
    background: #0C0C0C;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 6px;
}

.glow-on-hover:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.glow-on-hover:active {
    color: #fff;
}

.glow-on-hover:active:after {
    background: #1a1d24;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0C0C0C;
    left: 0;
    top: 0;
    border-radius: inherit;
}

/* Active state for glow items */
.glow-on-hover.active:before {
    opacity: 0.7;
}

.glow-on-hover.active:after {
    background: #1a1d24;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    user-select: none;
    font-size: 13px;
}

/* ==================== APP LAYOUT ==================== */
.app-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

/* ==================== COMPACT MENU BAR ==================== */
.menu-bar {
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 2px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 2px 10px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-right: 1rem;
    border-right: 1px solid var(--border-color);
}

.logo-icon {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.logo-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.logo-text {
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #a855f7, #6366f1, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-version {
    display: none;
}

.menu-items {
    display: flex;
    gap: 0.25rem;
    flex: 1;
}

.menu-item {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: #1a1d24;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    position: relative;
    z-index: 0;
}

.menu-item:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.menu-item:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a1d24;
    left: 0;
    top: 0;
    border-radius: inherit;
}

.menu-item:hover:before {
    opacity: 1;
}

.menu-item:hover {
    color: var(--text-primary);
}

.menu-item:active:after {
    background: #252a33;
}

.card-size-selector-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.size-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.size-select {
    padding: 0.35rem 0.6rem;
    background: #1a1d24;
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 0;
}

.size-select:hover {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.size-select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.7);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ==================== LEFT SIDEBAR ==================== */
.sidebar-left {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 2px solid var(--accent-primary);
    box-shadow: 5px 0 15px rgba(0, 240, 255, 0.3), inset -2px 0 8px rgba(0, 240, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-tabs {
    display: flex;
    background: var(--sidebar-bg-dark);
    border-bottom: none;
    padding: 0.25rem;
    gap: 0.25rem;
}

.sidebar-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 0;
    color: #0C0C0C;
}

.sidebar-tab:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.sidebar-tab:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    top: 0;
    border-radius: inherit;
}

.sidebar-tab:hover:before {
    opacity: 1;
}

.sidebar-tab.active:before {
    opacity: 0.8;
}

.sidebar-tab.active:after {
    background: #0C0C0C;
}

.sidebar-tab.active {
    color: #fff;
}

.sidebar-tab .tab-icon {
    font-size: 0.9rem;
}

.sidebar-tab .tab-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    display: none;
}

.sidebar-tab:hover .tab-label {
    color: rgba(0, 0, 0, 0.8);
}

.sidebar-tab.active .tab-label {
    color: white;
    display: block;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    background: var(--sidebar-bg);
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.tab-content {
    animation: fadeIn 0.2s ease;
}

/* ==================== SECTIONS ==================== */
.section {
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.helper-text {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.sidebar-left .section-title,
.sidebar-left .helper-text {
    color: rgba(0, 0, 0, 0.6);
}

/* ==================== BUTTONS ==================== */
.button-group {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex: 1;
    position: relative;
    z-index: 0;
    color: #fff;
    background: #0C0C0C;
}

.btn-primary:before,
.btn-secondary:before,
.btn-danger:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.btn-primary:after,
.btn-secondary:after,
.btn-danger:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0C0C0C;
    left: 0;
    top: 0;
    border-radius: inherit;
}

.btn-primary:hover:before,
.btn-secondary:hover:before,
.btn-danger:hover:before {
    opacity: 1;
}

.btn-primary:active:after,
.btn-secondary:active:after,
.btn-danger:active:after {
    background: #1a1d24;
}

.btn-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1d24;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
    color: var(--text-primary);
    position: relative;
    z-index: 0;
}

.btn-icon:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.btn-icon:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a1d24;
    left: 0;
    top: 0;
    border-radius: inherit;
}

.btn-icon:hover:before {
    opacity: 1;
}

/* ==================== CARD SIDE TOGGLE ==================== */
.card-side-toggle {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.side-btn {
    flex: 1;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 6px;
    color: rgba(0, 0, 0, 0.6);
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 0;
}

.side-btn:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.side-btn:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    top: 0;
    border-radius: inherit;
}

.side-btn:hover:before {
    opacity: 1;
}

.side-btn:hover {
    color: rgba(0, 0, 0, 0.8);
}

.side-btn.active:before {
    opacity: 0.8;
}

.side-btn.active:after {
    background: #0C0C0C;
}

.side-btn.active {
    color: white;
}

/* ==================== LAYER LIST ==================== */
.layer-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 0;
}

.layer-item:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.layer-item:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    top: 0;
    border-radius: inherit;
}

.layer-item:hover:before {
    opacity: 1;
}

.layer-item.selected:before {
    opacity: 0.8;
}

.layer-item.selected:after {
    background: #0C0C0C;
}

.layer-item-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.layer-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0C0C0C;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.layer-info {
    flex: 1;
    min-width: 0;
}

.layer-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #0C0C0C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layer-item.selected .layer-name {
    color: #fff;
}

.layer-group-tag {
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.5);
}

.layer-item.selected .layer-group-tag {
    color: rgba(255, 255, 255, 0.6);
}

.layer-actions {
    display: flex;
    gap: 0.15rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
    position: relative;
    z-index: 1;
}

.layer-item:hover .layer-actions {
    opacity: 1;
}

.layer-action-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
}

.layer-action-btn:hover {
    background: #0C0C0C;
    color: white;
}

.layer-item.selected .layer-action-btn {
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== SHAPE LIBRARY ==================== */
.shape-category {
    margin-bottom: 0.75rem;
}

.shape-category-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    padding-left: 0.25rem;
}

.shape-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
}

.shape-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 6px;
    cursor: grab;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 0;
}

.shape-item:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.shape-item:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    top: 0;
    border-radius: inherit;
}

.shape-item:hover:before {
    opacity: 1;
}

.shape-item:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.shape-preview {
    width: 24px;
    height: 24px;
    color: #0C0C0C;
    position: relative;
    z-index: 1;
}

.shape-name {
    display: none;
}

/* ==================== TEMPLATE GRID ==================== */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.template-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0C0C0C;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.template-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.template-card-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 0;
}

.template-card-item:hover {
    transform: scale(1.03);
}

.template-thumb-wrapper {
    aspect-ratio: 0.714;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.template-card-item:hover .template-thumb-wrapper {
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.4), 0 0 0 2px rgba(0, 240, 255, 0.6);
}

.template-thumb-wrapper:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.template-card-item:hover .template-thumb-wrapper:before {
    opacity: 1;
}

.template-card-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #0C0C0C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.template-card-name span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-delete-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 4px;
    width: 18px;
    height: 18px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
}

.template-delete-btn:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.2);
}

/* Legacy template styles for backwards compatibility */
.template-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.template-thumb {
    aspect-ratio: 0.714;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.template-thumb:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.template-thumb:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    top: 0;
    border-radius: inherit;
}

.template-thumb:hover:before {
    opacity: 1;
}

.template-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== CANVAS AREA ==================== */
.canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--canvas-viewport-bg);
    overflow: hidden;
}

.canvas-toolbar {
    height: var(--toolbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    gap: 1rem;
}

.toolbar-section {
    display: flex;
    align-items: center;
}

.toolbar-center {
    flex: 1;
    justify-content: center;
}

.toolbar-group {
    display: flex;
    gap: 0.25rem;
}

.tool-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1d24;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 0;
}

.tool-btn:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.tool-btn:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a1d24;
    left: 0;
    top: 0;
    border-radius: inherit;
}

.tool-btn:hover:before {
    opacity: 1;
}

.tool-btn:hover {
    color: var(--text-primary);
}

.tool-btn.active:before {
    opacity: 0.8;
}

.tool-btn.active:after {
    background: #252a33;
}

.tool-btn.danger:hover:before {
    opacity: 1;
}

/* ==================== GRID CONTROLS ==================== */
.grid-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 0.6rem;
    background: #1a1d24;
    border-radius: 6px;
}

.grid-control-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.control-label,
.control-unit {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

.grid-control-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.grid-size-input {
    width: 40px;
    padding: 0.2rem 0.3rem;
    background: #1a1d24;
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.7rem;
    text-align: center;
}

.grid-size-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ==================== CANVAS VIEWPORT - FLOATING ==================== */
.canvas-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas-viewport-bg);
    overflow: auto;
    position: relative;
    padding: var(--canvas-padding);
}

.canvas-container {
    position: relative;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.05),
        0 8px 32px rgba(0,0,0,0.6),
        0 0 80px rgba(107, 127, 255, 0.08);
}

/* ==================== CARD CANVAS ==================== */
.card-canvas {
    position: relative;
    background: linear-gradient(145deg, #2a2a3e 0%, #1e1e2e 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-slow), box-shadow var(--transition-fast);
    transform-origin: center center;
    overflow: hidden;
}

.card-canvas:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

/* ==================== PAGE BAR (Bottom) ==================== */
.page-bar {
    height: var(--page-bar-height);
    background: var(--bg-secondary);
    border-top: 2px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 -2px 10px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
}

.page-bar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-bar-scroll {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.page-bar-scroll::-webkit-scrollbar {
    height: 4px;
}

.page-bar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.page-bar-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.page-thumb {
    flex-shrink: 0;
    width: 50px;
    height: 70px;
    background: #1a1d24;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.page-thumb:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.page-thumb:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a1d24;
    left: 0;
    top: 0;
    border-radius: inherit;
}

.page-thumb:hover:before {
    opacity: 1;
}

.page-thumb.active:before {
    opacity: 0.8;
}

.page-thumb.active:after {
    background: #252a33;
}

.page-thumb .page-number {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.6rem;
    color: var(--text-muted);
    z-index: 1;
}

.page-thumb .page-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--accent-danger);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
    cursor: pointer;
    z-index: 2;
}

.page-thumb:hover .page-delete {
    display: flex;
}

.add-page-btn {
    flex-shrink: 0;
    width: 50px;
    height: 70px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    position: relative;
    z-index: 0;
}

.add-page-btn:hover {
    border-color: transparent;
    color: var(--text-primary);
}

.add-page-btn:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.add-page-btn:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a1d24;
    left: 0;
    top: 0;
    border-radius: inherit;
}

.add-page-btn:hover:before {
    opacity: 1;
}

/* ==================== LAYERS ==================== */
.layer {
    position: absolute;
    cursor: move;
    transition: box-shadow var(--transition-fast);
}

.layer.selected {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.2);
}

.group-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    pointer-events: none;
}

/* ==================== FRAME LAYERS ==================== */
.layer.frame-layer {
    overflow: hidden;
}

.layer.frame-layer.frame-circle {
    border-radius: 50%;
}

.layer.frame-layer.frame-rounded {
    border-radius: 20px;
}

.frame-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(107, 127, 255, 0.1);
    border: 2px dashed rgba(107, 127, 255, 0.3);
    color: var(--accent-primary);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: inherit;
}

.frame-placeholder:hover {
    background: rgba(107, 127, 255, 0.15);
    border-color: rgba(107, 127, 255, 0.5);
}

.frame-placeholder-icon {
    font-size: 1.5rem;
}

/* ==================== RESIZE HANDLES ==================== */
.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border: 2px solid white;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.resize-handle:hover {
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
    transform: scale(1.2);
}

.resize-nw { top: -5px; left: -5px; cursor: nw-resize; }
.resize-n { top: -5px; left: calc(50% - 5px); cursor: n-resize; }
.resize-ne { top: -5px; right: -5px; cursor: ne-resize; }
.resize-e { top: calc(50% - 5px); right: -5px; cursor: e-resize; }
.resize-se { bottom: -5px; right: -5px; cursor: se-resize; }
.resize-s { bottom: -5px; left: calc(50% - 5px); cursor: s-resize; }
.resize-sw { bottom: -5px; left: -5px; cursor: sw-resize; }
.resize-w { top: calc(50% - 5px); left: -5px; cursor: w-resize; }

/* ==================== ROTATION HANDLE ==================== */
.rotation-handle {
    position: absolute;
    top: -28px;
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    font-size: 0.7rem;
    color: white;
    z-index: 10;
}

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

/* ==================== SELECTION BOX ==================== */
#selection-box {
    position: absolute;
    border: 2px dashed var(--accent-primary);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    pointer-events: none;
    z-index: 10000;
}

/* ==================== FLOATING TOOLBAR ==================== */
.floating-toolbar {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.25rem;
    padding: 0.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* ==================== RIGHT SIDEBAR ==================== */
.sidebar-right {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-left: 2px solid var(--accent-primary);
    box-shadow: -5px 0 15px rgba(0, 240, 255, 0.3), inset 2px 0 8px rgba(0, 240, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.properties-header {
    height: var(--toolbar-height);
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: var(--sidebar-bg-dark);
    border-bottom: none;
}

.properties-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0C0C0C;
}

.properties-tabs {
    display: flex;
    background: var(--sidebar-bg-dark);
    border-bottom: none;
    padding: 0.25rem;
    gap: 0.25rem;
}

.prop-tab {
    flex: 1;
    padding: 0.4rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 0;
}

.prop-tab:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.prop-tab:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    top: 0;
    border-radius: inherit;
}

.prop-tab:hover:before {
    opacity: 1;
}

.prop-tab:hover {
    color: rgba(0, 0, 0, 0.8);
}

.prop-tab.active:before {
    opacity: 0.8;
}

.prop-tab.active:after {
    background: #0C0C0C;
}

.prop-tab.active {
    color: white;
}

.properties-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    background: var(--sidebar-bg);
}

.properties-content::-webkit-scrollbar {
    width: 6px;
}

.properties-content::-webkit-scrollbar-track {
    background: transparent;
}

.properties-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.no-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.no-selection-icon {
    font-size: 2.5rem;
    color: #0C0C0C;
    opacity: 0.3;
    margin-bottom: 0.75rem;
}

.no-selection p {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: rgba(0, 0, 0, 0.6);
}

/* ==================== PROPERTIES PANEL ==================== */
.properties-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.property-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.property-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
}

.property-value {
    font-size: 0.8rem;
    color: #0C0C0C;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.property-input,
.property-select {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    color: #0C0C0C;
    font-family: var(--font-family);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.property-input:focus,
.property-select:focus {
    outline: none;
    border-color: #00F0FF;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4), inset 0 0 5px rgba(0, 240, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.property-input:hover,
.property-select:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.property-input[type="color"] {
    height: 36px;
    cursor: pointer;
    padding: 0.25rem;
    border: 2px solid rgba(0, 240, 255, 0.4);
}

.property-input[type="color"]:hover {
    border-color: #00F0FF;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ==================== CUSTOM SLIDER STYLES ==================== */
.property-slider {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,240,255,0.3) 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    margin: 8px 0;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
}

.property-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
    cursor: pointer;
}

.property-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8);
    background-size: 400%;
    animation: glowing 8s linear infinite;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255,255,255,0.9);
    margin-top: -7px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.property-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.property-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.property-slider::-moz-range-track {
    height: 6px;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,240,255,0.3) 100%);
    border-radius: 3px;
    cursor: pointer;
}

.property-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8);
    background-size: 400%;
    animation: glowing 8s linear infinite;
    border-radius: 50%;
    cursor: grab;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.property-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.property-slider::-moz-range-thumb:active {
    cursor: grabbing;
}

/* Focus style for accessibility */
.property-slider:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.property-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.4), 0 2px 10px rgba(0, 240, 255, 0.5);
}

textarea.property-input {
    resize: vertical;
    min-height: 60px;
}

/* ==================== GRADIENT BUILDER ==================== */
.gradient-builder {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.gradient-preview {
    height: 50px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1d24;
    border: none;
    border-radius: 6px;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 0;
}

.modal-close:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff3333);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.modal-close:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a1d24;
    left: 0;
    top: 0;
    border-radius: inherit;
}

.modal-close:hover:before {
    opacity: 1;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 1rem;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.modal-actions button {
    flex: 1;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.5rem;
    background: #1a1d24;
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.8rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

/* ==================== CONTEXT MENU ==================== */
.context-menu {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.35rem;
    z-index: 10000;
    min-width: 150px;
}

.context-menu-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 0;
}

.context-menu-item:before {
    content: '';
    background: var(--glow-gradient);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: inherit;
}

.context-menu-item:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a1d24;
    left: 0;
    top: 0;
    border-radius: inherit;
}

.context-menu-item:hover:before {
    opacity: 1;
}

.context-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.35rem 0;
}

/* ==================== PRINT SHEET ==================== */
#print-sheet-container {
    background: var(--canvas-bg);
}

.print-sheet-card {
    background: linear-gradient(145deg, #2a2a3e 0%, #1e1e2e 100%);
    overflow: visible;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1400px) {
    :root {
        --sidebar-width: 240px;
        --canvas-padding: 80px;
    }
}

@media (max-width: 1200px) {
    .menu-item span {
        font-size: 0;
    }
    .menu-item span::first-letter {
        font-size: 0.9rem;
    }
    :root {
        --canvas-padding: 60px;
    }
}
