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

:root {
    --primary-color: #e8d5f2;
    --secondary-color: #f5e6d3;
    --accent-color: #d4c5f9;
    --text-primary: #4a4a4a;
    --text-secondary: #8b8b8b;
    --bg-light: #faf8f6;
    --bg-white: #ffffff;
    --border-color: #e8e6e1;
    --hover-bg: #f5f2ed;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --sidebar-sky-bg: linear-gradient(180deg, #cde8fa 0%, #9ecdf0 100%);
    --sidebar-sky-border: #7fb7df;
    --sidebar-sky-accent: #7ec5ef;
    --sidebar-sky-accent-deep: #57b0e6;
    --sidebar-sky-hover: #eff8ff;
    --sidebar-sky-active: #d7ecfb;
    --sidebar-sky-text: #1f5175;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========== HAMBURGER MENU ========== */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #92cff3 0%, #72bde9 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(87, 176, 230, 0.35);
}

.hamburger-btn:hover {
    background: linear-gradient(135deg, #7ec5ef 0%, #57b0e6 100%);
}

.hamburger-btn span {
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 280px;
    background: var(--sidebar-sky-bg);
    border-right: 1px solid var(--sidebar-sky-border);
    display: flex;
    flex-direction: column;
    box-shadow: 6px 0 20px rgba(87, 176, 230, 0.12);
}

.sidebar-header {
    padding: 24px 16px;
    text-align: center;
    border-bottom: 1px solid var(--sidebar-sky-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(176, 214, 239, 0.25) 100%);
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sidebar-sky-text);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 12px;
    color: #4f7ea1;
    font-weight: 400;
    margin-bottom: 8px;
}

.btn-logout {
    width: 100%;
    padding: 6px 10px;
    background: #e8f1f8;
    border: 1px solid #a9cee8;
    color: #2b5f82;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #dff1ff;
    border-color: #7ec5ef;
    color: #1f5175;
}


.btn-new-note {
    margin: 16px;
    padding: 12px 16px;
    border: none;
    background: linear-gradient(135deg, #92cff3 0%, #72bde9 100%);
    color: #0f4367;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(87, 176, 230, 0.35);
}

.btn-new-note:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #7ec5ef 0%, #57b0e6 100%);
    box-shadow: 0 6px 14px rgba(87, 176, 230, 0.45);
}

.btn-new-note .icon {
    font-size: 18px;
    font-weight: 700;
}

/* ========== SEARCH BOX ========== */
.search-box {
    position: relative;
    padding: 8px 12px;
    margin: 0 8px 8px 8px;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 32px;
    border: 1px solid var(--sidebar-sky-border);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    color: #285978;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--sidebar-sky-accent);
    box-shadow: 0 0 0 3px rgba(126, 197, 239, 0.2);
}

.search-input::placeholder {
    color: #89b3cf;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #7aa9c9;
    pointer-events: none;
}

/* ========== FOLDERS SECTION ========== */


.folders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 8px;
}

.folders-section.collapsed .folders-header {
    margin-bottom: 0;
}

.folders-header h3 {
    font-size: 12px;
    font-weight: 600;
    color: #4f7ea1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-toggle-folders {
    background: none;
    border: none;
    color: #4f7ea1;
    font-size: 10px;
    cursor: pointer;
    padding: 0;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.folders-section.collapsed .btn-toggle-folders {
    transform: rotate(-90deg);
}

.btn-add-folder {
    background: var(--sidebar-sky-accent);
    color: #0f4367;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-add-folder:hover {
    background: var(--sidebar-sky-accent-deep);
    transform: scale(1.05);
}

.folders-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Common folder item styling */
.folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cde6f8;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.folder-item:hover {
    background: var(--sidebar-sky-hover);
    border-color: var(--sidebar-sky-accent);
}

.folder-item-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.folder-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2b5f82;
    font-weight: 500;
}

.folder-item-count {
    font-size: 10px;
    color: #2b5f82;
    background: #dff0fc;
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
}

.folder-item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.folder-item:hover .folder-item-actions {
    opacity: 1;
}

.btn-folder-edit, .btn-folder-delete {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    transition: all 0.2s;
    border-radius: 3px;
}

.btn-folder-edit:hover {
    background: #dff0fc;
}

.btn-folder-delete:hover {
    background: #ffe8e8;
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 197, 249, 0.1);
}

.form-color-input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #c5b8ed;
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

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

.notes-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.note-item {
    padding: 8px 10px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cde6f8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.note-item:hover {
    background: var(--sidebar-sky-hover);
    border-left-color: var(--sidebar-sky-accent);
}

.note-item.active {
    background: linear-gradient(135deg, #e4f3ff 0%, #d7ecfb 100%);
    border: 1px solid var(--sidebar-sky-accent);
    border-left-color: var(--sidebar-sky-accent);
}

.note-item-keyword {
    font-size: 12px;
    font-weight: 600;
    color: #2b5f82;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0;
}

.note-item-title {
    font-size: 12px;
    font-weight: 500;
    color: #4f7ea1;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    display: none;
}

.note-item-preview {
    font-size: 11px;
    color: #7aa9c9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
}

.note-item-date {
    font-size: 10px;
    color: #7aa9c9;
    margin-top: 4px;
    display: none;
}

.note-item-folder {
    display: none;
    font-size: 10px;
    font-weight: 600;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.note-item-tags {
    display: none;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.tag {
    display: inline-block;
    font-size: 9px;
    background: #dff0fc;
    color: #2b5f82;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f4faff 0%, #edf6fd 100%);
    overflow: hidden;
}

.editor-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff8ff 0%, #e6f2fb 100%);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
}

.empty-state svg {
    color: #ddd0e0;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
}

/* ========== NOTE EDITOR ========== */
.note-editor {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f5fbff;
}

.editor-header {
    padding: 20px 24px;
    border-bottom: 1px solid #b9d8ee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #e9f6ff 0%, #d7ebfa 100%);
}

.title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.note-title-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 24px;
    font-weight: 700;
    color: #244e6c;
    outline: none;
    padding: 0;
}

.note-title-input::placeholder {
    color: #8ab1cc;
}

.note-subtitle-input {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    color: #4f7ea1;
    outline: none;
    padding: 0;
}

.note-subtitle-input::placeholder {
    color: #9dc0d8;
}

.editor-meta {
    margin-top: 4px;
    padding-bottom: 8px;
}

.note-timestamp {
    font-size: 12px;
    color: #5d87a8;
    font-style: italic;
}

.folder-tags-section {
    display: none;
}

.note-folder-select {
    border: 1px solid #a9cee8;
    background: rgba(255, 255, 255, 0.92);
    color: #2b5f82;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.note-folder-select:hover {
    border-color: var(--sidebar-sky-accent);
    box-shadow: 0 0 0 2px rgba(126, 197, 239, 0.18);
}

.note-tags-input {
    flex: 1;
    border: 1px solid #a9cee8;
    background: rgba(255, 255, 255, 0.92);
    color: #2b5f82;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
}

.note-tags-input:focus {
    border-color: var(--sidebar-sky-accent);
    box-shadow: 0 0 0 2px rgba(126, 197, 239, 0.18);
}

.note-tags-input::placeholder {
    color: #89b3cf;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #a9cee8;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    color: #4f7ea1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #dff1ff;
    color: #244e6c;
    border-color: var(--sidebar-sky-accent);
}

/* ========== TOOLBAR ========== */
.editor-toolbar {
    padding: 12px 24px;
    border-bottom: 1px solid #b9d8ee;
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(180deg, #ecf7ff 0%, #e2f1fc 100%);
    flex-wrap: wrap;
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #a9cee8;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #2b5f82;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 32px;
}

.toolbar-select {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #a9cee8;
    border-radius: 4px;
    padding: 6px 8px;
    min-height: 32px;
    font-size: 12px;
    color: #2b5f82;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-select:hover,
.toolbar-select:focus {
    background: #dff1ff;
    border-color: var(--sidebar-sky-accent);
    box-shadow: 0 0 0 2px rgba(126, 197, 239, 0.15);
}

#fontFamilySelect {
    min-width: 145px;
}

#fontSizeSelect {
    min-width: 72px;
}

.toolbar-btn:hover {
    background: #dff1ff;
    border-color: var(--sidebar-sky-accent);
    color: #1f5175;
}

.toolbar-btn.active {
    background: #8ecbf1;
    border-color: #78bee9;
    color: #0f4367;
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: #b9d8ee;
    margin: 0 4px;
}

/* ========== COLOR PICKERS ========== */
.color-picker-group {
    position: relative;
    display: inline-block;
}

.color-btn {
    position: relative;
    padding: 6px 12px;
    min-width: 36px;
}

.color-icon {
    display: block;
    font-weight: 700;
    font-size: 14px;
}

.color-icon.highlight-icon {
    font-style: italic;
}

.color-btn::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background: currentColor;
    border-radius: 1px;
}

.auto-save {
    margin-left: auto;
    font-size: 12px;
    color: #4d9bc6;
    font-weight: 500;
}

/* ========== EDITOR CONTENT ========== */
.editor-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    outline: none;
    color: #1f1f1f;
    font-size: 14px;
    line-height: 1.8;
    background: #f9f7f4;
}

.editor-content:focus {
    background: linear-gradient(135deg, #f9f7f4 0%, #f5fbff 100%);
}

.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.editor-content img:hover {
    transform: scale(1.02);
}

.editor-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    box-shadow: var(--shadow);
}

.editor-content p {
    margin-bottom: 12px;
}

.editor-content ul,
.editor-content ol {
    margin-left: 24px;
    margin-bottom: 12px;
}

.editor-content li {
    margin-bottom: 6px;
}

.editor-content table,
.editor-content .editor-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    background: #f9f7f4;
}

.editor-content th,
.editor-content td {
    border: 1px solid #1f1f1f;
    padding: 8px 10px;
    vertical-align: top;
    color: #1f1f1f;
}

.editor-content hr,
.editor-content .editor-divider {
    border: none;
    border-top: 2px solid #1f1f1f;
    margin: 16px 0;
}

.editor-content strong {
    font-weight: 700;
    color: #1f1f1f;
}

.editor-content em {
    font-style: italic;
    color: #2a2a2a;
}

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6,
.editor-content p,
.editor-content li {
    color: #1f1f1f;
}

.editor-content u {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
}

/* ========== FOOTER ========== */
.editor-footer {
    padding: 12px 24px;
    border-top: 1px solid #b9d8ee;
    background: #edf7ff;
    text-align: right;
}

.word-count {
    font-size: 12px;
    color: #5d87a8;
    font-weight: 500;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .container {
        flex-direction: column;
    }

    main {
        width: 100%;
        padding-top: 60px;
        height: auto;
        min-height: calc(100vh - 60px);
    }

    .sidebar {
        width: 100%;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        max-height: none;
        border-right: none;
        border-bottom: none;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-top: 0;
    }

    .sidebar-header {
        padding: 16px 12px;
    }

    .app-title {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .app-subtitle {
        font-size: 10px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-overlay.active {
        display: block;
    }

    .btn-new-note {
        margin: 12px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-box {
        padding: 8px 10px;
        margin: 0 8px 8px 8px;
    }

    .search-input {
        font-size: 13px;
        padding: 8px 10px;
    }

    .folders-section {
        padding: 10px 8px;
        margin-bottom: 8px;
    }

    .folders-header h3 {
        font-size: 11px;
    }

    .folder-item {
        font-size: 11px;
        padding: 6px 8px;
    }

    .note-item {
        font-size: 11px;
        padding: 8px 10px;
    }

    .notes-list {
        display: flex;
        flex-direction: column;
    }

    .note-item-keyword {
        font-size: 13px;
    }

    .editor-header {
        padding: 16px 12px;
        flex-wrap: wrap;
    }

    .title-section {
        gap: 4px;
        flex: 1;
    }

    .note-title-input {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .note-subtitle-input {
        font-size: 12px;
    }

    .editor-meta {
        margin-top: 0;
        padding-bottom: 4px;
    }

    .note-timestamp {
        font-size: 11px;
    }

    .folder-tags-section {
        gap: 6px;
        flex: 1;
        margin-top: 6px;
    }

    .note-folder-select,
    .note-tags-input {
        font-size: 11px;
        padding: 4px 6px;
        flex: 1;
        min-width: 100px;
    }

    .editor-actions {
        align-self: flex-start;
    }

    .editor-toolbar {
        gap: 2px;
        padding: 8px 12px;
        flex-wrap: wrap;
        overflow-x: auto;
    }

    .toolbar-btn {
        font-size: 11px;
        padding: 6px 8px;
        white-space: nowrap;
    }

    .toolbar-select {
        font-size: 11px;
        padding: 6px;
    }

    #fontFamilySelect {
        min-width: 120px;
    }

    #fontSizeSelect {
        min-width: 64px;
    }

    .toolbar-separator {
        width: 1px;
        height: 20px;
    }

    .editor-content {
        padding: 12px;
        font-size: 14px;
        min-height: 300px;
    }

    .editor-footer {
        padding: 8px 12px;
        font-size: 11px;
    }

    .word-count {
        font-size: 11px;
    }

    .modal-content {
        width: 90vw;
        max-width: 400px;
    }
}

/* ========== FOOTER ========== */
.app-footer {
    text-align: center;
    padding: 16px 24px;
    font-size: 12px;
    color: #7aa9c9;
    background: linear-gradient(180deg, #f4faff 0%, #edf6fd 100%);
    border-top: 1px solid #b9d8ee;
}

.app-footer p {
    margin: 0;
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
    .hamburger-btn {
        width: 36px;
        height: 36px;
        top: 12px;
        left: 12px;
    }

    main {
        padding-top: 56px;
    }

    .sidebar-header {
        padding: 12px 10px;
    }

    .app-title {
        font-size: 14px;
    }

    .btn-new-note {
        margin: 8px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .search-input {
        font-size: 12px;
        padding: 6px 8px;
    }

    .folders-header h3 {
        font-size: 10px;
    }

    .note-title-input {
        font-size: 16px;
    }

    .note-subtitle-input {
        font-size: 11px;
    }

    .folder-tags-section {
        flex-direction: column;
        gap: 4px;
    }

    .note-folder-select,
    .note-tags-input {
        width: 100% !important;
        min-width: auto !important;
    }

    .editor-toolbar {
        gap: 2px;
        padding: 6px 8px;
    }

    .toolbar-btn {
        font-size: 10px;
        padding: 4px 6px;
    }

    .editor-content {
        padding: 10px;
        font-size: 13px;
        min-height: 250px;
    }

    .btn-icon {
        width: 28px;
        height: 28px;
    }
}

/* ========== ANIMATION ========== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.note-editor {
    animation: slideIn 0.3s ease;
}

/* ========== TABLE STYLING (copy/paste dari ChatGPT) ========== */
.editor-content table,
.note-content table,
.note-content table th,
.note-content table td {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #c8c8c8;
}

.editor-content th,
.editor-content td,
.note-content th,
.note-content td {
    padding: 6px 8px;
    border: 1px solid #c8c8c8;
    text-align: left;
}

.editor-content tr:nth-child(even),
.note-content tr:nth-child(even) {
    background: #fafafa;
}

.editor-content th,
.note-content th {
    background: #f1f1f1;
    font-weight: 600;
}

/* ========== SELECTION COLOR ========== */
::selection {
    background: var(--accent-color);
    color: #5a4a7a;
}

::-moz-selection {
    background: var(--accent-color);
    color: #5a4a7a;
}
