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

:root {
    /* Light Mode Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --primary-color: #667eea;
    --primary-color-rgb: 102, 126, 234;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Light mode (default) */
body {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dark-mode {
    --bg-primary: #0f172a !important;
    --bg-secondary: #1e293b !important;
    --bg-card: #334155 !important;
    --text-primary: #f1f5f9 !important;
    --text-secondary: #94a3b8 !important;
    --border-color: #475569 !important;
    --primary-color: #667eea !important;
    --primary-color-rgb: 102, 126, 234 !important;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}



body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    position: relative;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 0;
}

.app-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-title i {
    font-size: 1.5rem;
    color: var(--gradient-primary);
}

/* Ayarlar Bölümü */
.settings-section {
    margin-bottom: 60px;
    position: relative;
}

.settings-container {
    position: relative;
    display: flex;
    align-items: center;
}

.settings-toggle {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-secondary) !important;
    font-size: 1.1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--shadow-card) !important;
    z-index: 10 !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    min-height: 44px !important;
    min-width: 44px !important;
}

.settings-toggle:hover {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow) !important;
    transform: scale(1.05) !important;
}

.settings-toggle.active {
    background: var(--gradient-primary) !important;
    color: white !important;
    transform: rotate(90deg) !important;
}

.settings-panel {
    position: absolute !important;
    right: 0 !important;
    top: -10px !important;
    background: var(--bg-card) !important;
    border-radius: var(--radius-lg) !important;
    padding: 16px !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(20px) !important;
    transition: all 0.2s ease !important;
    min-width: 200px !important;
    z-index: 1000 !important;
}

.settings-panel.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.theme-toggle {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-secondary) !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--shadow-card) !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    min-height: 44px !important;
    min-width: 44px !important;
}

.theme-toggle:hover {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transform: scale(1.05) !important;
    box-shadow: var(--shadow) !important;
}

/* Language Toggle Button */
.language-toggle {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-secondary) !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--shadow-card) !important;
    position: relative !important;
    overflow: hidden !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    min-height: 44px !important;
    min-width: 44px !important;
}

.language-toggle:hover {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transform: scale(1.05) !important;
    box-shadow: var(--shadow) !important;
}

.language-toggle .lang-text {
    position: absolute !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    bottom: 5px !important;
    right: 5px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 2px 4px !important;
    min-width: 16px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.language-toggle.english .lang-text {
    transform: translateX(-2px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}



/* Note Form Styles */
.note-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    margin-top: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.input-group {
    margin-bottom: 20px;
}

.note-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.note-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.note-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
}

.note-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Rich Text Editor Styles */
.rich-editor {
    min-height: 200px;
    overflow-y: auto;
    word-wrap: break-word;
    line-height: 1.6;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    caret-color: var(--text-primary);
    outline: none;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    hyphens: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.rich-editor[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: var(--text-secondary);
    pointer-events: none;
    position: relative;
    top: 0;
    left: 0;
}

.rich-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rich-editor ul, .rich-editor ol {
    margin: 10px 0;
    padding-left: 20px;
}

.rich-editor li {
    margin: 5px 0;
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    flex-wrap: wrap;
    position: relative;
}



.toolbar-btn {
    background: none;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
}

.toolbar-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: scale(1.05);
}

.toolbar-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.toolbar-separator {
    width: 1px;
    height: 25px;
    background: var(--border-color);
    margin: 0 5px;
}





@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Custom highlight styling for rich editor */
.rich-editor strong {
    font-weight: 600;
}
}

/* Adjust textarea border radius when toolbar is present */
.editor-toolbar + .note-textarea {
    border-radius: 0 0 15px 15px;
    border-top: none;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn-export:hover {
    background: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Notes Container */
.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    overflow: visible;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* Note Card Styles */
.note-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    cursor: grab;
    user-select: none;
    transform: translateX(0);
}

/* Swipe Delete Button */
.swipe-delete {
    position: absolute;
    top: 0;
    right: -80px;
    width: 80px;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 20px 20px 0;
    z-index: 10;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.swipe-delete i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.swipe-delete span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Undo Notification */
.undo-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.undo-notification button {
    background: var(--gradient-accent);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.undo-notification button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.note-card:active {
    cursor: grabbing;
}

.note-card.pinned {
    border: 2px solid var(--gradient-primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(102, 126, 234, 0.05) 100%);
}

.note-card.pinned::before {
    content: '📌';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    z-index: 2;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.note-card.swiping {
    transition: none;
}

.note-card.swipe-left {
    transform: translateX(-100px);
}

.note-card.swipe-right {
    transform: translateX(100px);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.note-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.4;
}

.note-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.note-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 1rem;
}

.action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.action-btn.edit:hover {
    color: var(--warning-color);
}

.action-btn.delete:hover {
    color: var(--danger-color);
}

.action-btn.pin {
    color: var(--success-color);
}

.action-btn.pin:hover {
    color: var(--success-color);
}

.action-btn.pin.pinned {
    background: var(--success-color);
    color: white;
}

/* Swipe Delete Confirmation */
.swipe-delete-confirmation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--danger-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 10;
    animation: slideInLeft 0.3s ease-out;
}

.swipe-delete-confirmation i {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* Sort and Pin Controls */
.notes-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.sort-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-btn {
    background: var(--gradient-secondary);
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sort-btn.active {
    background: var(--gradient-primary);
}

.pin-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pin-filter {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pin-filter:hover {
    background: var(--border-color);
}

.pin-filter.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Swipe Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.note-card.shake {
    animation: shake 0.5s ease-in-out;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .app-title {
        font-size: 2rem;
    }

    .note-form {
        margin-bottom: 25px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .notes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .note-card {
        padding: 20px;
    }

    .notes-controls {
        flex-direction: column;
        gap: 15px;
    }

    .sort-controls, .pin-controls {
        width: 100%;
        justify-content: center;
    }
    
    .theme-control-section {
        padding: 15px 20px;
        margin-bottom: 15px;
    }
    
    .theme-label {
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.5rem;
    }

    .note-form {
        padding: 20px;
    }

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

    .note-card {
        padding: 15px;
    }

    .note-title {
        font-size: 1.1rem;
    }

    .note-content {
        font-size: 0.9rem;
    }
    
    .theme-control-section {
        padding: 12px 15px;
        margin-bottom: 12px;
    }
    
    .theme-label {
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }
}

/* Animation for new notes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.note-card {
    animation: slideIn 0.5s ease-out;
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Desktop Mode for Mobile Browsers */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding: 20px 0;
    }
    
    .app-title {
        font-size: 2.5rem;
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .note-form {
        padding: 30px;
        border-radius: 20px;
        margin-bottom: 30px;
    }
    
    .button-group {
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 16px;
        min-width: auto;
        width: auto;
    }
    
    .notes-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
    
    .note-card {
        margin-bottom: 0;
        min-height: 200px;
    }
    
    .notes-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .sort-controls, .pin-controls {
        flex-direction: row;
        gap: 10px;
        width: auto;
        justify-content: flex-start;
    }
    
    .search-section {
        margin-bottom: 20px;
    }
    
    .search-box {
        max-width: 400px;
    }
    
    .editor-toolbar {
        flex-wrap: nowrap;
        gap: 5px;
        padding: 10px;
    }
    
    .toolbar-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .rich-editor {
        min-height: 150px;
        padding: 15px;
    }
}

/* Large Desktop Mode */
@media (min-width: 1024px) {
    .container {
        max-width: 1400px;
        padding: 30px;
    }
    
    .notes-container {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 25px;
    }
    
    .note-form {
        padding: 40px;
    }
    
    .button-group {
        gap: 20px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* Extra Large Desktop Mode */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
        padding: 40px;
    }
    
    .notes-container {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
        gap: 30px;
    }
    
    .app-title {
        font-size: 3rem;
    }
    
    .note-form {
        padding: 50px;
    }
}



/* Force Desktop Mode for Mobile Browsers */
body.force-desktop-mode .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

body.force-desktop-mode .header {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding: 20px 0 !important;
}

body.force-desktop-mode .app-title {
    font-size: 2.5rem !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
}

body.force-desktop-mode .note-form {
    padding: 30px !important;
    border-radius: 20px !important;
    margin-bottom: 30px !important;
}

body.force-desktop-mode .button-group {
    flex-direction: row !important;
    gap: 15px !important;
    justify-content: flex-start !important;
}

body.force-desktop-mode .btn {
    padding: 12px 24px !important;
    font-size: 16px !important;
    min-width: auto !important;
    width: auto !important;
}

body.force-desktop-mode .notes-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 30px !important;
}

body.force-desktop-mode .note-card {
    margin-bottom: 0 !important;
    min-height: 200px !important;
}

body.force-desktop-mode .notes-controls {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

body.force-desktop-mode .sort-controls,
body.force-desktop-mode .pin-controls {
    flex-direction: row !important;
    gap: 10px !important;
    width: auto !important;
    justify-content: flex-start !important;
}

body.force-desktop-mode .search-section {
    margin-bottom: 20px !important;
}

body.force-desktop-mode .search-box {
    max-width: 400px !important;
}

body.force-desktop-mode .editor-toolbar {
    flex-wrap: nowrap !important;
    gap: 5px !important;
    padding: 10px !important;
}

body.force-desktop-mode .toolbar-btn {
    padding: 8px 12px !important;
    font-size: 14px !important;
    min-width: 40px !important;
}

body.force-desktop-mode .rich-editor {
    min-height: 150px !important;
    padding: 15px !important;
}

/* Privacy Policy Footer */
.privacy-policy {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-content h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.privacy-text {
    margin-bottom: 30px;
}

.privacy-text p {
    margin-bottom: 12px;
    padding: 8px 0;
}

.privacy-text strong {
    color: var(--text-color);
    font-weight: 600;
}

.privacy-links {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.privacy-links span {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 15px;
}

.license-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.license-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.license-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.license-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Privacy Policy */
@media (max-width: 768px) {
    .privacy-policy {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .privacy-content {
        padding: 0 15px;
    }
    
    .privacy-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .privacy-text {
        margin-bottom: 20px;
    }
    
    .license-info {
        padding: 12px;
    }
    
    .license-info p {
        font-size: 12px;
    }
}



/* Modern toolbar group */
.toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

/* Modern button styling */
.modern-btn {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
}

.modern-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}



/* Header selector modern styling */
.header-container {
    position: relative;
    display: inline-block;
}

.format-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.header-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

.header-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.header-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-option {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: left;
    margin-bottom: 4px;
}

.header-option:last-child {
    margin-bottom: 0;
}

.header-option:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.header-option.selected {
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-color-rgb), 0.8));
    color: white;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-preview {
    font-weight: bold;
    min-width: 32px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.header-option.selected .header-preview {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.normal-preview {
    font-size: 14px;
    font-weight: normal;
}

.h1-preview {
    font-size: 18px;
}

.h2-preview {
    font-size: 16px;
}

.h3-preview {
    font-size: 14px;
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.header-option.selected .option-title {
    color: white;
}

.option-desc {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: normal;
}

.header-option.selected .option-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Rich editor header styles */
.rich-editor h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 0.5em 0;
    line-height: 1.2;
    color: var(--text-color);
}

.rich-editor h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0.4em 0;
    line-height: 1.3;
    color: var(--text-color);
}

.rich-editor h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0.3em 0;
    line-height: 1.4;
    color: var(--text-color);
}

.rich-editor p {
    margin: 0.2em 0;
    line-height: 1.5;
    color: var(--text-color);
}

/* Custom highlight styling for rich editor */
.rich-editor strong {
    font-weight: 600;
}

/* Color Palette Modal Styles */
/* Color palette modal removed - colors now in toolbar */

/* Color palette content and grid removed - colors now in toolbar */



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive color palette CSS removed - colors now in toolbar */

