:root {
    /* Color Palette - Light Mode */
    --primary: #D96846;
    /* Orange/Rust */
    --primary-hover: #c05a3c;
    --primary-light: rgba(217, 104, 70, 0.15);

    --bg-color: #f7f6f4;
    /* Warmer off-white */
    --bg-sidebar: #F7F6F4;
    /* Light off-white */
    --bg-elevated: #ffffff;

    --text-primary: #2F3020;
    /* Dark Green from palette */
    --text-secondary: #596235;
    /* Olive Green from palette */
    --text-muted: rgba(47, 48, 32, 0.5);

    --border-color: rgba(89, 98, 53, 0.2);
    --danger: #e63946;
    --danger-hover: #d90429;
    --danger-bg: rgba(230, 57, 70, 0.1);

    --note-blue: #E3F2FD;
    --note-green: #E8F5E9;
    --note-yellow: #FFF9C4;
    --note-pink: #FCE4EC;
    --note-blue-border: #BBDEFB;
    --note-green-border: #C8E6C9;
    --note-yellow-border: #FFF59D;
    --note-pink-border: #F8BBD0;

    --shadow-sm: 0 1px 2px 0 rgba(47, 48, 32, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(47, 48, 32, 0.1), 0 2px 4px -2px rgba(47, 48, 32, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(47, 48, 32, 0.15), 0 4px 6px -4px rgba(47, 48, 32, 0.1);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #D96846 0%, #e88669 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-color) 0%, #EFEFEE 100%);
    line-height: 1.5;
    transition: background-color var(--transition), color var(--transition);
    overflow: hidden;
    /* Prevent body scroll, everything handled inside */
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width var(--transition), transform var(--transition) background-color var(--transition), border-color var(--transition);
    z-index: 20;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo h1,
.sidebar.collapsed .primary-btn span,
.sidebar.collapsed .secondary-btn span,
.sidebar.collapsed #search-input,
.sidebar.collapsed .notes-list-header h2,
.sidebar.collapsed .note-preview,
.sidebar.collapsed .note-date {
    display: none;
}

.sidebar.collapsed .primary-btn {
    padding: 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .primary-btn i {
    margin-right: 0;
}

.sidebar.collapsed .dashboard-trash-actions {
    flex-direction: column;
}

.sidebar.collapsed .secondary-btn {
    padding: 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .secondary-btn i {
    margin-right: 0;
}

.sidebar.collapsed .search-container {
    background: transparent;
    border-color: transparent;
    justify-content: center;
}

.sidebar.collapsed .note-item {
    align-items: center;
    padding: 0.75rem;
}

.sidebar.collapsed .note-item-title {
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Sidebar Header */
.sidebar-header {
    height: 70px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.sidebar.collapsed .sidebar-header {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    justify-content: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Common Buttons */
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
}

.icon-btn:hover {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    font-family: inherit;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.primary-btn:active {
    transform: translateY(0);
}

.danger-btn:hover:not(:disabled) {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.danger-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar Actions */
.sidebar-actions {
    padding: 1.5rem;
}

/* Search */
.search-container {
    margin: 0 1.5rem 1.5rem;
    position: relative;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    transition: all var(--transition);
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-icon {
    color: var(--text-muted);
    font-size: 0.875rem;
}

#search-input {
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
    width: 100%;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

#search-input::placeholder {
    color: var(--text-muted);
}

/* Category Filter */
.category-filter-container {
    padding: 0 1.5rem 1.5rem;
}

.category-select {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
}

.category-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.category-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.category-select.inline {
    width: auto;
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    font-weight: 500;
}

.category-select.inline:hover {
    background-color: var(--bg-color);
}

/* Notes List */
.notes-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem 0.75rem;
    color: var(--text-secondary);
}

.notes-list-header h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#note-count {
    font-size: 0.75rem;
    background-color: var(--bg-color);
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.notes-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding: 0 1rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.notes-list::-webkit-scrollbar {
    width: 4px;
}

.notes-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: var(--radius-full);
}

.note-item {
    padding: 1rem 3rem 1rem 1rem;
    /* Extra right padding for delete button */
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    background-color: transparent;
}

.note-item:hover {
    background-color: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.note-item.active {
    background-color: var(--primary-light);
    border-color: rgba(217, 104, 70, 0.3);
    box-shadow: 0 4px 12px rgba(217, 104, 70, 0.15);
    transform: translateY(-2px);
}

.note-item.active .note-item-title {
    color: var(--primary);
}

.note-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition);
}

.note-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.note-item-pin-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    color: var(--primary);
    font-size: 0.8rem;
    z-index: 1;
    display: none;
}

.note-item.pinned .note-item-pin-icon {
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.main-header {
    height: 70px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn,
.mobile-back-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 1rem;
}

.active-note-indicator {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}



/* Editor Area */
.editor-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.editor-area {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.note-title-input {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    margin-bottom: 1rem;
}

.note-title-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.editor-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

#pin-note-btn {
    margin-left: auto;
}

#pin-note-btn.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.editor-meta span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.color-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition);
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

.color-btn[data-color="default"] {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

.color-btn[data-color="blue"] {
    background-color: var(--note-blue);
}

.color-btn[data-color="green"] {
    background-color: var(--note-green);
}

.color-btn[data-color="yellow"] {
    background-color: var(--note-yellow);
}

.color-btn[data-color="pink"] {
    background-color: var(--note-pink);
}

/* Note Colors */
.note-color-blue {
    background-color: var(--note-blue) !important;
    border-color: var(--note-blue-border) !important;
}

.note-color-green {
    background-color: var(--note-green) !important;
    border-color: var(--note-green-border) !important;
}

.note-color-yellow {
    background-color: var(--note-yellow) !important;
    border-color: var(--note-yellow-border) !important;
}

.note-color-pink {
    background-color: var(--note-pink) !important;
    border-color: var(--note-pink-border) !important;
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.9rem;
}

.toolbar-btn:hover,
.toolbar-btn.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
    margin: 0 0.25rem;
}

.note-content-input {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.note-content-input[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    opacity: 0.5;
    pointer-events: none;
    display: block;
    /* Fix for empty div taking no space */
}

.note-content-input h1,
.note-content-input h2 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.note-content-input ul,
.note-content-input ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

/* Dashboard View */
.dashboard-view {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeIn 0.5s ease-out forwards;
}

.dashboard-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dashboard-greeting-clock {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.live-clock-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-time {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -2px;
}

.live-date {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-header-text h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-header-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-wrapper.blue {
    background: var(--note-blue);
    color: #1E88E5;
}

.stat-icon-wrapper.green {
    background: var(--note-green);
    color: #43A047;
}

.stat-info .stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.dashboard-bottom-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.text-btn:hover {
    color: var(--primary-hover);
}

.recent-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.recent-note-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-note-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.recent-note-title {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-note-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.quick-filters-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-filter-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}

.quick-filter-btn i {
    color: var(--primary);
    font-size: 1.25rem;
}

.quick-filter-btn:hover {
    background: var(--primary-light);
    border-color: rgba(217, 104, 70, 0.3);
    transform: translateX(4px);
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-primary);
    color: var(--bg-elevated);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.toast.show {
    bottom: 40px;
}

.toast-icon {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Note Item Delete Button */
.note-item-delete-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    /* Hidden by default */
    transition: all var(--transition);
    font-size: 0.9rem;
    z-index: 2;
}

.note-item:hover .note-item-delete-btn {
    opacity: 1;
    /* Visible on hover */
}

.note-item.active .note-item-delete-btn {
    opacity: 1;
}

.note-item-delete-btn:hover {
    color: var(--danger);
    background-color: var(--danger-bg);
}

/* Modal CSS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-elevated);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.secondary-btn:hover {
    background-color: var(--bg-color);
}

.solid-danger-btn {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.solid-danger-btn:hover {
    background-color: var(--danger-hover);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .main-header {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-back-btn.show-on-mobile {
        display: block;
        margin-right: 0.5rem;
    }

    .mobile-menu-btn.hide-on-mobile {
        display: none;
    }

    .editor-container {
        padding: 1.5rem 1rem;
    }

    .note-title-input {
        font-size: 2rem;
    }

    .editor-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .note-item-delete-btn {
        opacity: 1;
        /* Always visible on mobile since there is no hover */
    }

    .dashboard-top-section,
    .dashboard-bottom-section {
        grid-template-columns: 1fr;
    }

    .live-clock-container {
        padding: 1.25rem;
    }

    .live-time {
        font-size: 2.75rem;
    }
}