:root {
    --primary-color: 245 158 11;
    --primary-color-hover: 217 119 6;
    --primary-light: 255 251 235;
    --primary-light-100: 254 243 199;
    --primary-light-200: 253 230 138;
    --primary-light-300: 252 211 77;
    --primary-light-400: 251 191 36;
    --primary-dark-800: 146 64 14;
    --primary-dark-950: 69 26 3;
}

.editor-content h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.editor-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.editor-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.editor-content p {
    margin-bottom: 0.75rem;
}

.editor-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.editor-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.editor-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    font-style: italic;
    color: #4b5563;
    margin: 1rem 0;
}

.dark .editor-content blockquote {
    border-left-color: #4b5563;
    color: #9ca3af;
}

.editor-content pre {
    background-color: #f3f4f6;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-family: monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.dark .editor-content pre {
    background-color: #1f2937;
}

.editor-content b, .editor-content strong {
    font-weight: 700;
}

.editor-content i, .editor-content em {
    font-style: italic;
}

.editor-content u {
    text-decoration: underline;
}

.task-row {
    display: flex;
    align-items: flex-start;
    margin: 4px 0;
    padding: 2px 0;
    position: relative;
}

.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 12px;
    margin-top: 4px;
    cursor: pointer;
    flex-shrink: 0;
    background-color: white;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
}

.dark .task-checkbox {
    border-color: #4b5563;
    background-color: #1f2937;
}

.task-checkbox:checked {
    background-color: rgb(var(--primary-color));
    border-color: rgb(var(--primary-color));
}

.task-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.task-text {
    flex: 1;
    min-height: 24px;
    outline: none;
    word-break: break-word;
}

.task-row.completed .task-text {
    text-decoration: line-through;
    color: #9ca3af;
}

.dark .task-row.completed .task-text {
    color: #6b7280;
}

.editor-content:focus {
    outline: none;
}

.editor-content:empty:before {
    content: attr(placeholder);
    color: #9ca3af;
    pointer-events: none;
    display: block;
}

.dark .editor-content:empty:before {
    color: #4b5563;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
}

@keyframes pulse-mic {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        color: #ef4444;
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
        color: #f59e0b;
    }
}

.recording-active {
    animation: pulse-mic 1.5s infinite;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media print {
    body, html, main {
        background: white !important;
        color: black !important;
        height: auto !important;
        overflow: visible !important;
    }
    aside, #sidebar-overlay, #note-list-section, #toast, #mobile-fab,
    #editor-area > div:first-child,
    #editor-area > div:nth-child(2),
    #note-category-select, #btn-save, #btn-speech, #btn-pin, #btn-trash, #btn-restore, #btn-delete,
    .editor-content:empty:before,
    .no-print {
        display: none !important;
    }
    #editor-area {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }
    .editor-content {
        min-height: auto !important;
        padding-bottom: 0 !important;
    }
}
