:root{
    --shadow-sm: 0 2px 4px rgba(0,0,0,.12);
    --shadow-md: 0 2px 8px rgba(0,0,0,.16);
    --shadow-md-strong: 0 4px 12px rgba(0,0,0,.22);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.30);
    --shadow-accent: 0 4px 15px rgba(102,126,234,.40);
    --shadow-accent-strong: 0 6px 20px rgba(102,126,234,.60);
    --shadow-info: 0 6px 20px rgba(79,172,254,.35);
    --shadow-danger: 0 6px 20px rgba(245,87,108,.35);
    --focus-ring: rgba(102,126,234,.20);

    --bg-grad-start:#667eea;
    --bg-grad-end:#764ba2;
    --text:#333;
    --muted:#6c757d;
    --panel-bg:#ffffff;
    --panel-muted:#f8f9fa;
    --border:#e9ecef;
    --accent:#667eea;
    --accent-2:#764ba2;
    --danger-start:#f093fb;
    --danger-end:#f5576c;
    --info-start:#4facfe;
    --info-end:#00f2fe;
    --success-start:#43e97b;
    --success-end:#38f9d7;
}

:root.theme-dark{
    /* For dark theme, force language control to be light for readability as requested */
    --lang-bg:#ffffff;
    --lang-text:#000000;

    --bg-grad-start:#0f172a;
    --bg-grad-end:#111827;
    --text:#e5e7eb;
    --muted:#9ca3af;
    --panel-bg:#1f2937;
    --panel-muted:#111827;
    --border:#374151;
    --accent:#8b5cf6;
    --accent-2:#6d28d9;
    --danger-start:#f093fb;
    --danger-end:#f5576c;
    --info-start:#60a5fa;
    --info-end:#22d3ee;
    --success-start:#34d399;
    --success-end:#10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: var(--panel-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 30px;
    max-width: 1000px;
    width: 100%;
}

h1 {
    text-align: center;
    color: var(--text);
    margin-bottom: 25px;
    font-size: 2.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Gradiente seguirá usando acentos */
}

.mode-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    align-items: center;
}

.mode-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #495057;
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.static-settings {
    display: none;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.static-settings.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.capacity-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.capacity-control label {
    font-weight: bold;
    color: #495057;
}

.capacity-control input {
    width: 80px;
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
}

.stack-visual {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    min-height: 300px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    border: 2px dashed var(--border);
    position: relative;
}

.stack-element {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 15px 25px;
    margin: 8px 0;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: var(--shadow-accent);
    animation: slideIn 0.3s ease;
    width: 80%;
    text-align: center;
    transition: all 0.3s ease;
}

.stack-element:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent-strong);
}

.stack-element.full {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: shake 0.5s ease;
}

.stack-empty {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 40px;
    width: 100%;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 20px;
}
.controls > * { max-width: 100%; }
.input-group { flex: 1 1 320px; display:flex; gap:10px; }
.controls button { flex: 1 1 160px; }
@media (max-width: 700px){
  .controls button { flex: 1 1 45%; }
}
@media (max-width: 480px){
  .controls button, .input-group { flex: 1 1 100%; }
}

.input-group {
    flex: 1;
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}
button:disabled{
    opacity: .6;
    cursor: not-allowed;
    filter: grayscale(0.2);
}
.input-error{ color: var(--danger-end); display:block; min-height:1em; }

/* Settings Control with Gear Icon */
.settings-control {
    margin-left: auto;
    position: relative;
}

.settings-btn {
    background: var(--panel-bg);
    border: 2px solid var(--border);
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    position: relative;
}

.settings-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg) scale(1.05);
    box-shadow: var(--shadow-accent);
}

.settings-btn:hover .settings-icon {
    color: white;
}

.settings-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.settings-btn[aria-expanded="true"] {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(180deg);
}

.settings-btn[aria-expanded="true"] .settings-icon {
    color: white;
}

.settings-icon {
    color: var(--text);
    transition: all 0.3s ease;
}

/* Settings Panel */
.settings-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    min-width: 280px;
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive positioning near gear icon */
@media (max-width: 768px) {
    .settings-panel {
        position: absolute;
        top: calc(100% + 10px);
        right: -15px;
        left: auto;
        transform: translateX(0%) translateY(-10px);
        width: 280px;
        max-width: calc(100vw - 40px);
        margin: 0;
    }
    
    .settings-panel:not(.hidden) {
        transform: translateX(0%) translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}

.settings-panel:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.settings-panel.hidden {
    display: none;
}

.settings-header {
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.settings-header h3 {
    color: var(--text);
    font-size: 1.2em;
    margin: 0;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-label {
    font-weight: bold;
    color: var(--text);
    font-size: 0.95em;
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-toggle-input {
    display: none;
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: var(--panel-muted);
    border-radius: 25px;
    padding: 5px;
    width: 170px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.theme-toggle-button {
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 5px;
    z-index: 2;
    border: 1px solid rgba(0,0,0,0.1);
}

.theme-light, .theme-dark {
    flex: 1;
    text-align: center;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.3s ease;
    padding: 8px 10px;
    z-index: 1;
}

.theme-toggle-input:checked + .theme-toggle-label {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-button {
    transform: translateX(80px);
    background: var(--panel-bg);
}

.theme-toggle-input:checked + .theme-toggle-label .theme-dark {
    color: white;
    font-weight: bold;
}

.theme-toggle-input:not(:checked) + .theme-toggle-label .theme-light {
    color: var(--text);
    font-weight: bold;
}

/* Language Radio Options */
.language-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: var(--panel-muted);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--accent);
    background: white;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95em;
}

/* Mantener select nativo para accesibilidad pero oculto visualmente */
.visually-hidden{ position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; border:0; clip:rect(0 0 0 0); clip-path: inset(50%); overflow:hidden; white-space: nowrap; }

/* Footer GitHub */
.footer{ width:100%; margin-top: 24px; display:flex; justify-content:center; gap:12px; align-items:center; color: var(--text); padding: 8px 0; } 
.footer a{ display:flex; align-items:center; gap:8px; color: var(--text); text-decoration:none; background: var(--panel-bg); padding:8px 12px; border-radius:12px; border:1px solid var(--border); box-shadow: var(--shadow-sm); }
.footer a.star-link{ color: #fbbf24; }
.footer a:hover{ text-decoration: none; box-shadow: var(--shadow-md); }

.btn-push {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-push:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-pop {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-pop:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-danger);
}

.btn-clear {
    background: linear-gradient(135deg, var(--info-start) 0%, var(--info-end) 100%);
}

.btn-clear:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-info);
}

.info-panel {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.info-label {
    font-weight: bold;
    color: #495057;
}

.info-value {
    color: #667eea;
    font-weight: bold;
}

.capacity-bar {
    margin-top: 10px;
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.capacity-fill.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
    z-index: 1000;
}

.message.success {
    background: linear-gradient(135deg, var(--success-start) 0%, var(--success-end) 100%);
}

.message.error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.message.warning {
    background: linear-gradient(135deg, var(--danger-start) 0%, #fee140 100%);
}

/* Visualizador de Implementaciones Unificado */
.implementation-visualizer {
    margin-top: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.visualizer-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
}

.implementations-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.implementation-box {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.implementation-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* Visualizador de ArrayList - Diseño adaptable */
.array-list-visualizer {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    min-height: 80px;
}

.array-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.array-node-circle {
    width: var(--node-size);
    height: var(--node-size);
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    font-size: calc(var(--node-size) * 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.array-node:hover .array-node-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.array-node-index {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: calc(var(--node-size) * 0.2);
    color: #6c757d;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.array-pointer {
    position: absolute;
    top: -10px;
    right: -10px;
    width: calc(var(--node-size) * 0.4);
    height: calc(var(--node-size) * 0.4);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: calc(var(--node-size) * 0.15);
}

/* Visualizador de Lista Enlazada - Diseño compacto */
.linked-list-visualizer {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 80px;
}

.linked-list-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.linked-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.linked-node-circle {
    width: var(--node-size);
    height: var(--node-size);
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    font-size: calc(var(--node-size) * 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.linked-node:hover .linked-node-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.linked-arrow {
    width: 20px;
    height: 2px;
    background: #667eea;
    position: relative;
}

.linked-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #667eea;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design for Implementation Containers */
@media (max-width: 1200px) {
    .implementation-box {
        min-width: 280px;
    }
    
    .array-list-visualizer {
        gap: 8px;
        padding: 15px;
    }
    
    .linked-list-visualizer {
        gap: 12px;
        padding: 15px;
    }
    
    .array-node-circle, .linked-node-circle {
        width: calc(var(--node-size) * 0.9);
        height: calc(var(--node-size) * 0.9);
        font-size: calc(var(--node-size) * 0.27);
    }
}

@media (max-width: 900px) {
    .mode-selector {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .settings-panel {
        right: -10px;
        min-width: 260px;
    }
    
    .implementations-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .implementation-box {
        min-width: 250px;
    }
    
    .array-list-visualizer {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
        padding: 12px;
    }
    
    .linked-list-visualizer {
        gap: 10px;
        padding: 12px;
    }
    
    .linked-list-row {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
    }
    
    .array-node-circle, .linked-node-circle {
        width: calc(var(--node-size) * 0.8);
        height: calc(var(--node-size) * 0.8);
        font-size: calc(var(--node-size) * 0.24);
    }
    
    .array-pointer {
        width: calc(var(--node-size) * 0.32);
        height: calc(var(--node-size) * 0.32);
        font-size: calc(var(--node-size) * 0.12);
    }
    
    .linked-arrow {
        width: 15px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}

/* Scrollbar estilizado (webkit) */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--panel-muted); }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }

@supports (scrollbar-color: auto) {
  * { scrollbar-color: var(--accent) var(--panel-muted); scrollbar-width: thin; }
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
}
    
    .theme-toggle-label {
        width: 150px;
        padding: 6px;
    }
    
    .theme-toggle-button {
        width: 24px;
        height: 24px;
    }
    
    .theme-toggle-input:checked + .theme-toggle-label .theme-toggle-button {
        transform: translateX(66px);
    }
    
    .theme-light, .theme-dark {
        padding: 8px 6px;
        font-size: 0.8em;
    }
    
    .implementation-visualizer {
        padding: 15px;
        margin-top: 20px;
    }
    
    .visualizer-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .implementation-box {
        min-width: 200px;
        padding: 15px;
    }
    
    .implementation-title {
        font-size: 1em;
        margin-bottom: 12px;
    }
    
    .array-list-visualizer, .linked-list-visualizer {
        padding: 10px;
        gap: 5px;
        min-height: 60px;
    }
    
    .array-node-circle, .linked-node-circle {
        width: calc(var(--node-size) * 0.7);
        height: calc(var(--node-size) * 0.7);
        font-size: calc(var(--node-size) * 0.21);
    }
    
    .array-node-index {
        font-size: calc(var(--node-size) * 0.18);
        padding: 1px 4px;
    }
    
    .array-pointer {
        width: calc(var(--node-size) * 0.28);
        height: calc(var(--node-size) * 0.28);
        font-size: calc(var(--node-size) * 0.1);
    }
    
    .linked-arrow {
        width: 12px;
        height: 1px;
    }
    
    .linked-arrow::after {
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
        border-left: 5px solid #667eea;
    }
}

@media (max-width: 480px) {
    .settings-panel {
        width: calc(100vw - 50px);
        max-width: 280px;
        padding: 18px;
    }
    
    .theme-toggle-label {
        width: 130px;
        padding: 5px;
    }
    
    .theme-toggle-button {
        width: 22px;
        height: 22px;
    }
    
    .theme-toggle-input:checked + .theme-toggle-label .theme-toggle-button {
        transform: translateX(56px);
    }
    
    .theme-light, .theme-dark {
        padding: 6px 4px;
        font-size: 0.75em;
    }
    
    .implementations-container {
        gap: 10px;
    }
    
    .implementation-box {
        min-width: 180px;
        padding: 12px;
    }
    
    .array-list-visualizer, .linked-list-visualizer {
        padding: 8px;
        gap: 4px;
        min-height: 50px;
    }
    
    .array-node-circle, .linked-node-circle {
        width: calc(var(--node-size) * 0.6);
        height: calc(var(--node-size) * 0.6);
        font-size: calc(var(--node-size) * 0.18);
        border-width: 1px;
    }
    
    .array-node-index {
        font-size: calc(var(--node-size) * 0.16);
        top: -6px;
    }
    
    .array-pointer {
        width: calc(var(--node-size) * 0.24);
        height: calc(var(--node-size) * 0.24);
        font-size: calc(var(--node-size) * 0.08);
        top: -8px;
        right: -8px;
    }
    
    .linked-list-row {
        gap: 4px;
    }
    
    .linked-arrow {
        width: 10px;
    }
    
    .linked-arrow::after {
        border-top: 2px solid transparent;
        border-bottom: 2px solid transparent;
        border-left: 4px solid #667eea;
        top: -2px;
    }
}
