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


body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: #f0f0f0;
    height: 100vh;
    margin: 0;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
}

.page-container {
    width: 100%;
    max-width: 1350px;
    height: 95vh;
    display: flex;
    justify-content: center;
}

.notepad-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    border: 1px solid #c0c0c0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--menu-bg, #f0f0f0);
    border-bottom: 1px solid var(--border-color, #c0c0c0);
    min-height: 50px;
    font-size: 13px;
    user-select: none;
    position: relative;
}

.menu-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.menu-right {
    display: flex;
    align-items: center;
}

.menu-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    min-height: 24px;
}

.menu-item:hover {
    background-color: #e0e0e0;
}

.menu-separator {
    margin: 0 8px;
    color: #888;
    font-size: 1.1em;
}

.language-select {
    padding: 6px 12px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    margin-left: 8px;
    min-height: 32px;
}

.editor-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.code-container {
    flex: 1;
    position: relative;
    height: 100%;
}

/* Make original textarea invisible but keep it in the DOM */
#noteEditor {
    display: none;
}

/* CodeMirror basic styling */
.CodeMirror {
    height: 100% !important;
    width: 100% !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    border: none !important;
}


.CodeMirror-focused .CodeMirror-cursor {
    border-left: 1px solid black !important;
}

/* Force syntax highlighting colors */
.cm-s-default .cm-keyword {color: #0000FF !important;}
.cm-s-default .cm-atom {color: #219 !important;}
.cm-s-default .cm-number {color: #164 !important;}
.cm-s-default .cm-def {color: #00f !important;}
.cm-s-default .cm-variable {color: black !important;}
.cm-s-default .cm-punctuation {color: #05a !important;}
.cm-s-default .cm-property {color: black !important;}
.cm-s-default .cm-operator {color: black !important;}
.cm-s-default .cm-comment {color: #a50 !important; font-style: italic !important;}
.cm-s-default .cm-string {color: #a11 !important;}
.cm-s-default .cm-meta {color: #555 !important;}
.cm-s-default .cm-tag {color: #170 !important;}
.cm-s-default .cm-attribute {color: #00c !important;}

.status-bar {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #c0c0c0;
    padding: 5px 10px;
    font-size: 11px;
}

/* Scrollbar styling */
#noteEditor::-webkit-scrollbar {
    width: 16px;
}

#noteEditor::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#noteEditor::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 0;
}

#noteEditor::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    body {
        padding: 10px;
    }
    
    .page-container {
        max-width: 100%;
    }
    
    .notepad-container {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .page-container {
        height: 95vh;
    }
    
    .menu-bar {
        flex-wrap: wrap;
    }
    
    .line-numbers {
        min-width: 30px;
        padding: 10px 3px 10px 8px;
    }
    
    #noteEditor {
        padding: 10px 10px 10px 10px;
    }
}

/* kill old overlay */
.highlight-layer { display: none !important; }
.highlighting-active #noteEditor { color: inherit; background: inherit; } /* neutralize */
    
    .notepad-container {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .menu-bar {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .line-numbers {
        min-width: 30px;
        padding: 10px 3px 10px 8px;
    }
    
    #noteEditor {
        padding: 10px 10px 10px 10px;
    }
}

/* kill old overlay */
.highlight-layer { display: none !important; }
.highlighting-active #noteEditor { color: inherit; background: inherit; } /* neutralize */
    .notepad-container {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .menu-bar {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .line-numbers {
        min-width: 30px;
        padding: 10px 3px 10px 8px;
    }
    
    #noteEditor {
        padding: 10px 10px 10px 10px;
    }
}

/* kill old overlay */
.highlight-layer { display: none !important; }
.highlighting-active #noteEditor { color: inherit; background: inherit; } /* neutralize */
.highlighting-active #noteEditor { color: inherit; background: inherit; } /* neutralize */
/* kill old overlay */
.highlight-layer { display: none !important; }
.highlighting-active #noteEditor { color: inherit; background: inherit; } /* neutralize */
.highlighting-active #noteEditor { color: inherit; background: inherit; } /* neutralize */
.highlighting-active #noteEditor { color: inherit; background: inherit; } /* neutralize */

/* Improved Toggle Button */
.menu-item.toggle-theme {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-item.toggle-theme:hover {
    background-color: #45a049;
}

/* Align toggle button to the right */
.menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-bar .menu-item.toggle-theme {
    margin-left: auto;
}

/* Arc Theme Adjustments */
body.dark {
    background-color: #282c34;
    color: #abb2bf;
}

body.dark .notepad-container {
    background-color: #3a3f4b;
    border-color: #4b5263;
}

body.dark .menu-bar {
    background-color: #3a3f4b;
    border-bottom-color: #4b5263;
}

body.dark .menu-item:hover {
    background-color: #4b5263;
}

/* CodeMirror Dark Theme */
.cm-s-dark {
    background-color: #282c34;
    color: #abb2bf;
}

.cm-s-dark .CodeMirror-cursor {
    border-left: 1px solid #528bff;
}

.cm-s-dark .CodeMirror-gutters {
    background-color: #3a3f4b;
    color: #636d83;
    border-right: 1px solid #4b5263;
}

body.dark .CodeMirror-gutters {
    background-color: #2b2b2b;
    color: #cccccc;
    border-right: 1px solid #444;
}

.dark .CodeMirror-linenumber {
    background-color: #2b2b2b;
    color: #cccccc;
}

.dark .line-numbers {
    background-color: #2b2b2b;
    color: #cccccc;
}

.dark .word-count, .dark .char-count {
    background-color: #2b2b2b;
    color: #cccccc;
}

.search-replace-container {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;

    border-radius: 5px;
    padding: 5px;

}

.search-replace-container input {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s;
}

.search-replace-container input:focus {
    border-color: #0078d7;
}

.search-replace-container button {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.search-replace-container button:hover {
    background-color: #005bb5;
}

#autoSaveNotification {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    opacity: 0;
    font-size: 12px;
    transition: opacity 0.5s, transform 0.3s;
    transform: translateY(10px);
    z-index: 1000;
}

#autoSaveNotification.show {
    opacity: 1;
    transform: translateY(0);
}

#notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#notification.show {
    opacity: 1;
    transform: translateY(0);
}

#notification.success {
    background: #28a745;
}

#notification.error {
    background: #dc3545;
}

#notification.info {
    background: #17a2b8;
}

#notification.warning {
    background: #ffc107;
    color: #212529;
    font-weight: bold;
    border: 1px solid #e0a800;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}



.dark .search-replace-container button {
    background-color: #444;
    color: #ccc;
}

.dark .search-replace-container button:hover {
    background-color: #555;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show, .modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
    font-size: 16px;
    margin: auto;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.font-size-controls {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.font-size-controls button {
    padding: 5px 10px;
    margin: 0 5px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #f9f9f9;
    transition: background-color 0.2s;
}

.font-size-controls button:hover {
    background-color: #e0e0e0;
}

/* Inline font size controls for menu bar */
.font-size-controls-inline {
    display: flex;
    align-items: center;
    gap: 2px;
}

.font-btn {
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: background-color 0.2s;
    margin: 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-btn:hover {
    background-color: #e0e0e0;
}

/* Search dropdown styles */
.search-dropdown {
    position: absolute;
    top: 100%;
    right: 10px;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 300px;
}

.search-dropdown.show {
    display: block;
}

.search-dropdown-content {
    padding: 10px;
}

.search-dropdown-content input {
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 12px;
}

.search-buttons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.search-buttons button {
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #f9f9f9;
    transition: background-color 0.2s;
}

.search-buttons button:hover {
    background-color: #e0e0e0;
}

/* Theme toggle styles */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}

.theme-icon {
    display: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

/* Show light icon by default (light theme) */
body:not(.dark) .light-icon {
    display: inline;
}

/* Show dark icon when in dark theme */
body.dark .dark-icon {
    display: inline;
}

.theme-toggle:hover {
    background-color: #e0e0e0;
}

body.dark .theme-toggle:hover {
    background-color: #555;
}

/* Renderer Panel Styles */
.renderer-panel {
    width: 50%;
    border-left: 1px solid #c0c0c0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.renderer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #c0c0c0;
    background: #f0f0f0;
    font-size: 12px;
}

.renderer-title {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.renderer-controls {
    display: flex;
    gap: 5px;
}

.render-btn {
    padding: 4px 8px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    color: #333;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.2s;
}

.render-btn:hover {
    background: #e0e0e0;
}

.renderer-output {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    white-space: pre-wrap;
    background: #ffffff;
    color: #333;
    font-size: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.renderer-output iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    flex: 1;
    min-height: 400px;
}

.renderer-output .error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin: 5px 0;
    border-left: 4px solid #ff6b6b;
}

.renderer-output .success {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin: 5px 0;
    border-left: 4px solid #51cf66;
}

.premium-notice {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.premium-notice h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.premium-notice .upgrade-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: transform 0.2s;
}

.premium-notice .upgrade-btn:hover {
    transform: translateY(-1px);
}

.render-status {
    font-size: 11px;
    opacity: 0.8;
    padding: 2px 6px;
    border-radius: 10px;
}

.render-status.free {
    background: rgba(81, 207, 102, 0.2);
    color: #51cf66;
}

.render-status.premium {
    background: rgba(156, 163, 175, 0.2);
    color: #6b7280;
}

/* Split View */
.editor-container.split-view {
    display: flex;
}

.editor-container.split-view .code-container {
    width: 50%;
}

/* Dark theme support for renderer */
body.dark .renderer-panel {
    background: #2d2d2d;
    border-left-color: #555;
}

body.dark .renderer-header {
    background: #1e1e1e;
    border-bottom-color: #555;
    color: #fff;
}

body.dark .render-btn {
    background: #3d3d3d;
    color: #fff;
    border-color: #555;
}

body.dark .render-btn:hover {
    background: #4d4d4d;
}

body.dark .renderer-output {
    background: #2d2d2d;
    color: #fff;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

/* Compact Website Branding for Menu Bar - Left side */
.website-brand-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Arial', sans-serif;
    margin-right: 8px;
}

.website-brand-compact .website-icon {
    font-size: 1.3em;
}

.website-brand-compact .website-name {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Remove the old website header styles and replace with compact version */
.website-header {
    display: none; /* Hide if any remain */
}

/* About Modal Styling */
.about-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
    margin: 20px;
    width: calc(100% - 40px);
    text-align: left;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    background: var(--bg-color, #fff);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 5px;
    border-radius: 3px;
}

.modal-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 25px;
}

.about-section {
    margin-bottom: 25px;
}

.about-section h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 1.2em;
    border-bottom: 2px solid #007acc;
    padding-bottom: 5px;
    display: inline-block;
}

.about-section p {
    margin: 10px 0;
    line-height: 1.6;
    color: var(--text-color);
}

.about-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.about-section li {
    margin: 8px 0;
    line-height: 1.5;
    color: var(--text-color);
}

.language-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.lang-tag {
    background: #007acc;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.about-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e0e0e0);
    margin-top: 20px;
}

.about-footer p {
    margin: 8px 0;
    color: var(--text-color);
}

.about-footer small {
    opacity: 0.7;
}

/* Keyboard shortcut styling */
kbd {
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.85em;
    font-family: monospace;
}

/* Dark theme support for About modal */
body.dark .modal-header {
    border-bottom-color: #404040;
}

body.dark .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark .about-footer {
    border-top-color: #404040;
}

body.dark kbd {
    background: #404040;
    border-color: #606060;
    color: #fff;
}

/* Responsive design for About modal */
@media (max-width: 768px) {
    .about-modal {
        max-width: 95vw;
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 15px 20px 10px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .language-grid {
        gap: 6px;
    }
    
    .lang-tag {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

/* Responsive design for compact branding */

@media (max-width: 768px) {
    .menu-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 8px 2px;
        min-height: 48px;
        font-size: 16px;
    }
    .menu-left, .menu-right {
        gap: 2px;
    }
    .menu-item, .font-btn {
        font-size: 1.4em;
        padding: 8px 6px;
        min-width: 36px;
        min-height: 36px;
        border-radius: 8px;
    }
    .menu-separator {
        margin: 0 2px;
        font-size: 1.2em;
    }
    .website-brand-compact .website-name {
        display: none;
    }
    .website-brand-compact {
        gap: 0;
        margin-right: 2px;
    }
    .language-select {
        font-size: 1em;
        padding: 6px 8px;
        min-width: 60px;
        margin-left: 2px;
    }
    .menu-bar::-webkit-scrollbar {
        display: none;
    }
}

/* Google Ads Styling */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    position: relative;
}

/* Ad Close Button */
.ad-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ad-close-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

/* Top and Bottom Banner Ads */
.ad-banner-top, .ad-banner-bottom {
    min-height: 90px;
    padding: 10px;
    margin: 5px 0;
}

/* Background Ads - Outside the main notepad area */
.ad-background-left, .ad-background-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    min-height: 600px;
    z-index: 10;
    padding: 10px;
}

.ad-background-left {
    left: 10px;
}

.ad-background-right {
    right: 10px;
}

/* Adjust main container to leave space for background ads */
.page-container {
    max-width: calc(100vw - 360px); /* Leave space for left and right ads */
    margin: 0 auto;
    padding: 0 20px;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
}

.ad-label {
    font-size: 10px;
    color: #adb5bd;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-ad {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 1px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-family: monospace;
    font-size: 11px;
}

/* Dark theme ad styling */
body.dark .ad-container {
    background: #343a40;
    border-color: #495057;
}

body.dark .ad-close-btn {
    background: rgba(255, 255, 255, 0.6);
    color: #000;
}

body.dark .ad-close-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

body.dark .google-ad {
    background: #2d2d2d;
    border-color: #495057;
    color: #adb5bd;
}

body.dark .ad-label {
    color: #6c757d;
}

/* Responsive design */
@media (max-width: 1400px) {
    .ad-background-left, .ad-background-right {
        display: none; /* Hide background ads on smaller screens */
    }
    
    .page-container {
        max-width: 100vw;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .ad-banner-top, .ad-banner-bottom {
        min-height: 50px; /* Mobile banner height */
    }
    
    .google-ad {
        font-size: 10px;
    }
    
    .page-container {
        padding: 0 5px;
    }
}

/* Ensure notepad container is properly centered */
.notepad-container {
    max-width: 1350px;
    margin: 0 auto;
}

/* Storage browser styles */
.storage-dropdown {
    position: absolute;
    top: 100%;
    left: 10px;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
}

.storage-dropdown.show {
    display: block;
}

.storage-dropdown-content {
    padding: 10px;
}

.storage-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.storage-header h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.storage-header input {
    width: 200px;
    padding: 5px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 12px;
}

.storage-header button {
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #f9f9f9;
    transition: background-color 0.2s;
}

.storage-header button:hover {
    background-color: #e0e0e0;
}

.storage-list {
    max-height: 250px;
    overflow-y: auto;
}

.storage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 3px;
    margin-bottom: 5px;
    background: #f9f9f9;
    transition: background-color 0.2s;
}

.storage-item:hover {
    background-color: #f0f0f0;
}

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

.storage-item-name {
    font-weight: bold;
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storage-item-date {
    font-size: 10px;
    color: #666;
}

.storage-item-actions {
    display: flex;
    gap: 5px;
}

.storage-btn {
    padding: 3px 6px;
    font-size: 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #fff;
    transition: background-color 0.2s;
}

.storage-btn:hover {
    background-color: #e0e0e0;
}

.storage-btn.load {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
}

.storage-btn.delete {
    background-color: #ffe7e7;
    border-color: #ffb3b3;
}

.storage-empty {
    text-align: center;
    color: #666;
    font-size: 12px;
    padding: 20px;
    font-style: italic;
}
