/**
 * R Code Visual Scripting - Stylesheet
 * 
 * This stylesheet provides the dark theme styling for the node-based editor.
 * It includes styles for:
 * - Layout and containers
 * - Node elements and ports
 * - Connection lines
 * - Sidebar and code panel
 * - Buttons and interactive elements
 */

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   Layout
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1e1e1e;
    color: #e0e0e0;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ==========================================================================
   Header and Toolbar
   ========================================================================== */

header {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
    display: flex;
    flex-direction: column;
}

.header-top {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    color: #4a9eff;
    margin: 0;
}

.toolbar {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #4a9eff;
    color: white;
}

.btn-primary:hover {
    background: #3a8eef;
}

.btn-secondary {
    background: #404040;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #505050;
}

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

.btn-primary:disabled:hover {
    background: #4a9eff;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Vertical resizer between canvas and code panel */
.vertical-resizer {
    width: 6px;
    cursor: col-resize;
    background: #2a2a2a;
    border-left: 1px solid #404040;
    border-right: 1px solid #404040;
    flex-shrink: 0;
    z-index: 10;
}

.vertical-resizer:hover,
body.resizing .vertical-resizer {
    background: #3a3a3a;
}

/* ==========================================================================
   Node Menu Bar
   ========================================================================== */

.node-menu-bar {
    display: flex;
    background: #252525;
    border-top: 1px solid #404040;
    padding: 0;
    width: 100%;
}

.menu-item {
    position: relative;
}

.menu-button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-right: 1px solid #404040;
    white-space: nowrap;
    font-family: inherit;
}

.menu-button:hover {
    background: #353535;
    color: #4a9eff;
}

.menu-item:last-child .menu-button {
    border-right: none;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 0 0 4px 4px;
    min-width: 250px;
    max-width: 350px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: none;
    flex-direction: column;
}

.menu-dropdown.show {
    display: flex;
}

.menu-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #404040;
    transition: all 0.2s;
    user-select: none;
}

.menu-dropdown-item:last-child {
    border-bottom: none;
}

.menu-dropdown-item:hover {
    background: #353535;
    border-left: 3px solid #4a9eff;
}

.menu-dropdown-item:active {
    cursor: grabbing;
}

.menu-item-name {
    display: block;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.menu-item-desc {
    display: block;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.3;
}

.menu-item-empty {
    padding: 1rem;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

.menu-subcategory-header {
    padding: 0.5rem 1rem;
    background: #353535;
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Sidebar - Node Library (Legacy - kept for compatibility)
   ========================================================================== */

.sidebar {
    width: 250px;
    background: #252525;
    border-right: 1px solid #404040;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #404040;
    background: #2d2d2d;
}

.sidebar-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.sidebar-tab:hover {
    color: #e0e0e0;
    background: #353535;
}

.sidebar-tab.active {
    color: #4a9eff;
    border-bottom-color: #4a9eff;
    background: #252525;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.sidebar-content.hidden {
    display: none;
}

.sidebar-content h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #4a9eff;
}

.sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #4a9eff;
}

.node-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category h3 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.node-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.node-item {
    background: #2d2d2d;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: grab;
    border: 1px solid #404040;
    transition: all 0.2s;
    user-select: none;
}

.node-item:hover {
    background: #353535;
    border-color: #4a9eff;
}

.node-item:active {
    cursor: grabbing;
}

.node-item-title {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
}

.node-item-desc {
    font-size: 0.8rem;
    color: #888;
}

/* ==========================================================================
   Canvas - Node Editor Area
   ========================================================================== */

.canvas-container {
    flex: 1;
    position: relative;
    background: #1a1a1a;
    background-image: 
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 20px 20px;
    overflow: hidden;
    /* Allow panning - nodes can be positioned outside viewport */
    cursor: default;
    width: 100%;
    /* Allow cursor to be changed dynamically for panning */
}

.connection-canvas {
    position: absolute;
    top: 0;
    left: 0;
    /* Match the container size - SVG width/height attributes set the actual size */
    width: 100%;
    height: 100%;
    min-width: 2000000px;
    min-height: 2000000px;
    pointer-events: none;
    z-index: 3;
    /* Ensure SVG content is not clipped */
    overflow: visible;
}

/* Enable pointer events only on connection lines */
.connection-canvas path.connection-line {
    pointer-events: stroke !important;
}

.node-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Allow nodes to be positioned outside viewport for panning */
    min-width: 100%;
    min-height: 100%;
    pointer-events: auto;
    /* Support infinite scrolling - canvas can be very large and positioned anywhere */
    overflow: visible;
}

/* ==========================================================================
   Node Elements
   ========================================================================== */

.node {
    position: absolute;
    background: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 8px;
    min-width: 200px;
    cursor: move;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s;
    z-index: 5;
}

.node:hover {
    box-shadow: 0 6px 16px rgba(74, 158, 255, 0.3);
}

.node.selected {
    border-color: #4a9eff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.3);
}

.node-header {
    background: #353535;
    padding: 0.75rem;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.node-title {
    font-weight: 600;
    color: #4a9eff;
    font-size: 0.9rem;
}

.node-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.node-doc-icon {
    text-decoration: none;
    font-size: 1rem;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    transition: all 0.2s;
    line-height: 1;
}

.node-doc-icon:hover {
    background: #404040;
    color: #4a9eff;
    transform: scale(1.1);
}

.node-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.node-close:hover {
    background: #404040;
    color: #e0e0e0;
}

.node-collapse {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s;
    opacity: 0.6;
}

.node-collapse:hover {
    background: #404040;
    color: #4a9eff;
    opacity: 1;
}

.collapse-icon {
    display: inline-block;
    transition: transform 0.2s;
    line-height: 1;
}

.node.collapsed .node-param {
    display: none;
}

.node-body {
    padding: 0.75rem;
}

.node-ports {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.node-port {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Ports - Connection Points
   ========================================================================== */

.port {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #404040;
    cursor: crosshair;
    position: relative;
    z-index: 15;
    transition: all 0.2s;
    pointer-events: auto;
    /* Increase hit area with invisible larger area */
    box-sizing: content-box;
}

/* Multiconnect ports are vertical ellipses/rounded rectangles */
.port.multiconnect {
    width: 8px;
    height: 16px;
    border-radius: 4px;
}

.port::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    /* Invisible hit area - larger than visual port */
    pointer-events: auto;
    cursor: crosshair;
}

/* Adjust hit area for multiconnect ports (taller) */
.port.multiconnect::before {
    width: 24px;
    height: 32px;
}

.port:hover {
    transform: scale(1.3);
    border-color: #4a9eff;
}

.port.input {
    /* Background color set dynamically by JavaScript based on type */
    /* Fallback color removed - JavaScript will set it */
    margin-left: -6px;
}

.port.output {
    /* Background color set dynamically by JavaScript based on type */
    /* Fallback color removed - JavaScript will set it */
    margin-right: -6px;
}

.port-label {
    flex: 1;
    color: #ccc;
}

.port.input + .port-label {
    text-align: left;
}

.port.output + .port-label {
    text-align: right;
}

.node-input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.node-input:focus {
    outline: none;
    border-color: #4a9eff;
}

/* Textarea styling - matches node-input with text wrap */
.node-textarea {
    resize: none;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 2rem;
    line-height: 1.4;
    font-family: inherit;
}

/* Select dropdown styling - matches node-input */
.node-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

.node-select:focus {
    outline: none;
    border-color: #4a9eff;
}

.node-select option {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* ==========================================================================
   Code Panel - Generated R Code Display
   ========================================================================== */

.code-panel {
    width: 400px;
    background: #252525;
    border-left: 1px solid #404040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 300px;
}

.code-header {
    padding: 1rem;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-header h2 {
    font-size: 1.1rem;
    color: #4a9eff;
}

#codeOutput {
    flex: 1;
    padding: 1rem;
    overflow: auto;
    background: #1a1a1a;
    color: #4ec9b0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 200px;
    max-height: 50%;
}

/* Prism.js syntax highlighting styles - ensure code element inherits properly */
#codeOutput code {
    display: block;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Override Prism theme colors to match dark theme better if needed */
#codeOutput code.language-r {
    color: #e0e0e0;
}

/* ==========================================================================
   Results Panel - Execution Results Display
   ========================================================================== */

.results-header {
    padding: 1rem;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
}

.results-header h2 {
    font-size: 1.1rem;
    color: #4a9eff;
    margin: 0;
}

.results-output {
    flex: 1;
    padding: 1rem;
    overflow: auto;
    background: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    min-height: 150px;
    max-height: 50%;
}

.results-placeholder {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    margin: 0;
}

.result-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    background: #252525;
    border-left: 3px solid #4a9eff;
}

.result-section.success {
    border-left-color: #4ec9b0;
}

.result-section.error {
    border-left-color: #ff6b6b;
    background: #2d1f1f;
}

.result-section.warning {
    border-left-color: #ffa500;
    background: #2d2a1f;
}

.result-label {
    font-weight: 600;
    color: #4a9eff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-section.error .result-label {
    color: #ff6b6b;
}

.result-section.warning .result-label {
    color: #ffa500;
}

.result-content {
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.result-timestamp {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

.result-loading {
    text-align: center;
    padding: 2rem;
    color: #4a9eff;
}

.result-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ==========================================================================
   Connection Lines - SVG Paths Between Nodes
   ========================================================================== */

.connection-line {
    /* Stroke color set dynamically by JavaScript based on type */
    /* stroke: #4a9eff; - Removed, JavaScript sets it */
    stroke-width: 3;
    fill: none;
    pointer-events: stroke;
    cursor: pointer;
    transition: all 0.2s;
}

.connection-line:hover {
    stroke: #ff6b6b;
    stroke-width: 4;
    filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.6));
}

/* Disable hover effects when connecting */
.connection-line.connecting-disabled:hover {
    stroke: #4a9eff; /* Keep original color */
    stroke-width: 3; /* Keep original width */
    filter: none; /* No glow effect */
}

/* ==========================================================================
   Scrollbars
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* ==========================================================================
   File Manager
   ========================================================================== */

.file-upload-area {
    border: 2px dashed #404040;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #4a9eff;
    background: #2d2d2d;
}

.file-upload-area.drag-over {
    border-color: #4a9eff;
    background: #2d2d2d;
}

.upload-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    background: #2d2d2d;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.file-item:hover {
    border-color: #4a9eff;
    background: #353535;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 0.75rem;
    color: #888;
}

.loading, .empty, .error {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
}

.error {
    color: #ff6b6b;
}

/* ==========================================================================
   CSV Preview Modal
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background: #2d2d2d;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid #404040;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #4a9eff;
    font-size: 1.25rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #404040;
    color: #e0e0e0;
}

.modal-body {
    padding: 1.5rem;
    overflow: auto;
    flex: 1;
}

.preview-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #404040;
}

.preview-info p {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.preview-info strong {
    color: #e0e0e0;
}

.preview-table-container {
    overflow-x: auto;
    max-height: 60vh;
    overflow-y: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.preview-table thead {
    position: sticky;
    top: 0;
    background: #2d2d2d;
    z-index: 10;
}

.preview-table th {
    background: #353535;
    color: #4a9eff;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #404040;
    font-weight: 600;
    white-space: nowrap;
}

.preview-table th .data-type {
    display: block;
    font-size: 0.7rem;
    color: #888;
    font-weight: normal;
    margin-top: 0.25rem;
}

.preview-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #404040;
    color: #e0e0e0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-table tbody tr:hover {
    background: #353535;
}

.preview-note {
    margin-top: 1rem;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

/* ==========================================================================
   Plot Modal
   ========================================================================== */

.plot-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
}

.plot-modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(95vh - 120px);
}

.plot-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #404040;
}

.plot-item h3 {
    color: #4a9eff;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.plot-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #252525;
    border-radius: 4px;
    padding: 1rem;
    min-height: 200px;
    overflow: auto;
}

.plot-image {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: white;
}

.plot-error {
    color: #ff6b6b;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Files Panel
   ========================================================================== */

.files-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: #252525;
    border-left: 1px solid #404040;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
}

.files-panel.hidden {
    display: none;
}

.files-panel-header {
    padding: 1rem;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
}

.files-panel-header h2 {
    font-size: 1.1rem;
    color: #4a9eff;
    margin: 0;
}

.files-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

