/* ===============================================
   EditPad - Custom Styles
   =============================================== */

/* Body & Base */
body {
    background-color: #F5F1D4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Note Items */
.note-item {
    transition: all 0.2s ease;
}
.note-item:hover {
    background-color: rgba(99, 102, 241, 0.1);
}
.note-item.active {
    background-color: rgba(99, 102, 241, 0.2);
    border-left: 4px solid #4F46E5;
}
/* Editor */
#editor {
    resize: none;
    font-family: 'Courier New', monospace;
}
/* Toolbar Buttons */
.toolbar-btn {
    transition: all 0.2s ease;
}
.toolbar-btn:hover {
    background-color: rgba(79, 70, 229, 0.1);
}
.toolbar-btn.active {
    background-color: #4F46E5;
    color: white;
}
.toolbar-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
.toolbar-btn:disabled:hover {
    background-color: transparent;
}
/* Download Menu */
#downloadMenu {
    min-width: 220px;
}
.download-option:hover {
    background-color: rgba(99, 102, 241, 0.1);
}
/* Preview Content Styles */
.preview-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}
.preview-content h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 0.5em 0;
}
.preview-content h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0.5em 0;
}
.preview-content h3 {
    font-size: 1.25em;
    font-weight: bold;
    margin: 0.5em 0;
}
.preview-content p {
    margin: 0.5em 0;
}
.preview-content ul,
.preview-content ol {
    margin: 0.5em 0;
    padding-left: 2em;
}
.preview-content ul { 
    list-style-type: disc!important; 
}
.preview-content ol { 
    list-style-type: decimal!important;
}
.preview-content code {
    background-color: #e5e7eb;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}
.preview-content pre {
    background-color: #1f2937;
    color: #f3f4f6;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
}
.preview-content blockquote {
    border-left: 4px solid #4F46E5;
    padding-left: 1em;
    margin: 0.5em 0;
    color: #6b7280;
}
/* View Toggle Buttons */
.view-toggle-btn {
    transition: all 0.2s ease;
    color: #6b7280;
}
.view-toggle-btn:hover {
    background-color: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
}
.view-toggle-btn.active {
    background-color: #4F46E5;
    color: white;
}
/* Sidebar Responsive */
#sidebar {
    transition: transform 0.3s ease-in-out;
}
#sidebar.sidebar-open {
    transform: translateX(0);
}
#sidebarOverlay {
    transition: opacity 0.3s ease-in-out;
}
#sidebarOverlay.show {
    display: block;
}
/* Desktop - Sidebar always visible */
@media (min-width: 1024px) {
    #sidebar {
        transform: translateX(0) !important;
        position: relative !important;
    }
    
    #sidebarOverlay {
        display: none !important;
    }
    
    #sidebarToggleBtn {
        display: none !important;
    }
}
/* Tablet and Mobile - Sidebar hidden by default */
@media (max-width: 1023px) {
    #sidebar {
        position: fixed;
        height: 100%;
        z-index: 30;
    }
}