@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #1e40af;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #111827;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

body.dark-mode {
    background-color: #111827;
    color: #f3f4f6;
}

/* Top Navigation */
.top-nav {
    background: white;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.dark-mode .top-nav {
    background: #1f2937;
    border-bottom-color: #374151;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.logo-text {
    color: #111827;
}

body.dark-mode .logo-text {
    color: #f3f4f6;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    color: #111827;
    display: inline-flex;
    align-items: center;
}

body.dark-mode .nav-link {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.nav-link:hover,
.nav-link.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
    overflow-y: auto;
    min-height: calc(100vh - 60px);
}

/* Tools Sidebar */
.tools-sidebar {
    width: 220px;
    background: #f9fafb;
    border-right: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    max-height: calc(100vh - 60px);
}

body.dark-mode .tools-sidebar {
    background: #111827;
    border-right-color: #374151;
}

.sidebar-header {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .sidebar-header {
    border-bottom-color: #374151;
    color: #9ca3af;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 0.75rem;
}

.tools-menu {
    display: flex;
    flex-direction: column;
    padding: 0.25rem;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.125rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-weight: 500;
}

body.dark-mode .tool-link {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

.tool-link:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    transform: translateX(4px);
}

body.dark-mode .tool-link:hover {
    background: #374151;
}

.tool-link.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tool-icon {
    font-size: 1rem;
    min-width: 1rem;
    text-align: center;
}

.tool-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

body.dark-mode .sidebar-divider {
    background: #374151;
}

/* Documents List */
.documents-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem;
    min-height: 150px;
    max-height: 400px;
    background: white;
}

body.dark-mode .documents-list {
    background: #1f2937;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.125rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s;
    font-size: 0.75rem;
    font-weight: 500;
}

body.dark-mode .document-item {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

.document-item:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

body.dark-mode .document-item:hover {
    background: #374151;
}

.document-item.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
}

.document-date {
    font-size: 0.65rem;
    opacity: 0.7;
    white-space: nowrap;
}

.document-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.doc-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.doc-btn:hover {
    opacity: 1;
}

.new-doc-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #3b82f6;
    padding: 0;
    transition: all 0.2s;
}

body.dark-mode .new-doc-btn {
    color: #60a5fa;
}

.new-doc-btn:hover {
    transform: scale(1.2);
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 100%;
}

/* Notepad Toolbar */
.notepad-toolbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .notepad-toolbar {
    background: #1f2937;
    border-bottom-color: #374151;
}

.toolbar-section {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-group {
    display: flex;
    gap: 0.25rem;
    padding: 0 0.5rem;
    border-right: 1px solid #e5e7eb;
}

body.dark-mode .toolbar-group {
    border-right-color: #374151;
}

.toolbar-group:last-child {
    border-right: none;
}

.toolbar-btn {
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: #111827;
}

body.dark-mode .toolbar-btn {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.toolbar-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

body.dark-mode .toolbar-btn:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.toolbar-select {
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #111827;
}

body.dark-mode .toolbar-select {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

/* Notepad Container */
.notepad-container { flex: 1; overflow-y: auto;
    display: flex;
}

.notepad-editor {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    outline: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: white;
    color: #111827;
}

body.dark-mode .notepad-editor {
    background: #111827;
    color: #f3f4f6;
}

.notepad-editor:focus {
    outline: none;
}

/* Status Bar */
.notepad-status-bar {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

body.dark-mode .notepad-status-bar {
    background: #1f2937;
    border-top-color: #374151;
    color: #9ca3af;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item span {
    font-weight: 600;
    color: #3b82f6;
}

body.dark-mode .status-item span {
    color: #60a5fa;
}

/* 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.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

body.dark-mode .modal-content {
    background: #1f2937;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

body.dark-mode .modal-header {
    border-bottom-color: #374151;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

body.dark-mode .modal-close {
    color: #9ca3af;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="checkbox"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

body.dark-mode .form-group input[type="text"] {
    background: #111827;
    border-color: #374151;
    color: #f3f4f6;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

body.dark-mode .modal-footer {
    border-top-color: #374151;
}

/* Emoji Modal */
.emoji-modal {
    max-width: 400px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}

.emoji-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s;
}

body.dark-mode .emoji-btn {
    background: #374151;
    border-color: #4b5563;
}

.emoji-btn:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

body.dark-mode .emoji-btn:hover {
    background: #4b5563;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

body.dark-mode .btn-secondary {
    background: #374151;
    color: #f3f4f6;
}

.btn-secondary:hover {
    background: #d1d5db;
}

body.dark-mode .btn-secondary:hover {
    background: #4b5563;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Extra Small Devices (< 480px) */
@media (max-width: 479px) {
    /* Navigation */
    .top-nav {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-logo {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-links {
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-link {
        flex: 1;
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        justify-content: center;
    }
    
    /* Main Layout */
    .main-layout {
        flex-direction: column;
    }
    
    /* Sidebar */
    .tools-sidebar {
        width: 100%;
        height: auto;
        max-height: 100px;
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
    }
    
    body.dark-mode .tools-sidebar {
        border-bottom-color: #374151;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-divider {
        display: none;
    }
    
    .tools-menu {
        flex-direction: row;
        padding: 0.5rem;
        width: 100%;
        gap: 0.25rem;
    }
    
    .tool-link {
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 0;
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
        gap: 0.25rem;
    }
    
    .tool-icon {
        font-size: 0.875rem;
        min-width: 0.875rem;
    }
    
    .tool-name {
        display: none;
    }
    
    .documents-list {
        display: none;
    }
    
    /* Toolbar */
    .notepad-toolbar {
        padding: 0.5rem;
        overflow-x: auto;
    }
    
    .toolbar-section {
        gap: 0.25rem;
    }
    
    .toolbar-group {
        padding: 0 0.25rem;
        border-right: none;
        gap: 0.125rem;
    }
    
    .toolbar-btn {
        padding: 0.35rem 0.4rem;
        font-size: 0.65rem;
        min-width: 40px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .toolbar-select {
        padding: 0.35rem 0.4rem;
        font-size: 0.65rem;
        min-height: 36px;
    }
    
    /* Editor */
    .notepad-editor {
        padding: 0.75rem;
        font-size: 11px;
        line-height: 1.5;
    }
    
    /* Status Bar */
    .notepad-status-bar {
        gap: 0.5rem;
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
        flex-wrap: wrap;
    }
    
    .status-item {
        gap: 0.25rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .emoji-btn {
        padding: 0.4rem;
        font-size: 1.25rem;
    }
}

/* Small Devices (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    /* Navigation */
    .top-nav {
        padding: 0.6rem 1rem;
    }
    
    .nav-container {
        flex-direction: row;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        display: inline;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
    
    /* Main Layout */
    .main-layout {
        flex-direction: column;
    }
    
    /* Sidebar */
    .tools-sidebar {
        width: 100%;
        height: auto;
        max-height: 110px;
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
        flex-direction: row;
        overflow-x: auto;
    }
    
    body.dark-mode .tools-sidebar {
        border-bottom-color: #374151;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-divider {
        display: none;
    }
    
    .tools-menu {
        flex-direction: row;
        padding: 0.5rem;
        width: 100%;
    }
    
    .tool-link {
        flex-shrink: 0;
        margin-bottom: 0;
        padding: 0.45rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .tool-icon {
        font-size: 0.95rem;
    }
    
    .tool-name {
        display: none;
    }
    
    .documents-list {
        display: none;
    }
    
    /* Toolbar */
    .notepad-toolbar {
        padding: 0.6rem;
        overflow-x: auto;
    }
    
    .toolbar-section {
        gap: 0.4rem;
    }
    
    .toolbar-group {
        padding: 0 0.3rem;
        border-right: none;
        gap: 0.2rem;
    }
    
    .toolbar-btn {
        padding: 0.4rem 0.55rem;
        font-size: 0.7rem;
        min-height: 36px;
    }
    
    .toolbar-select {
        padding: 0.4rem 0.55rem;
        font-size: 0.7rem;
        min-height: 36px;
    }
    
    /* Editor */
    .notepad-editor {
        padding: 1rem;
        font-size: 12px;
    }
    
    /* Status Bar */
    .notepad-status-bar {
        gap: 1rem;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Modal */
    .modal-content {
        width: 90%;
        max-height: 85vh;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .tools-sidebar {
        width: 180px;
    }
    
    .tool-name {
        font-size: 0.8rem;
    }
    
    .toolbar-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
    }
    
    .notepad-editor {
        padding: 1.5rem;
        font-size: 13px;
    }
    
    .notepad-status-bar {
        gap: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Desktop (1024px and above) */
@media (min-width: 1024px) {
    .tools-sidebar {
        width: 220px;
    }
    
    .tool-name {
        font-size: 0.8rem;
    }
    
    .toolbar-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-height: 40px;
    }
    
    .notepad-editor {
        padding: 2rem;
        font-size: 14px;
    }
    
    .notepad-status-bar {
        gap: 2rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .top-nav,
    .tools-sidebar,
    .notepad-toolbar,
    .notepad-status-bar {
        display: none;
    }
    
    body {
        height: auto;
        overflow: auto;
    }
    
    .main-layout {
        flex-direction: column;
    }
    
    .content-area {
        flex: none;
        overflow: visible;
    }
    
    .notepad-container {
        flex: none;
        overflow: visible;
    }
    
    .notepad-editor {
        padding: 0;
        background: white;
        color: black;
    }
}


/* Notepad Toolbar */
.notepad-toolbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .notepad-toolbar {
    background: #1f2937;
    border-bottom-color: #374151;
}

.toolbar-section {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-group {
    display: flex;
    gap: 0.25rem;
    padding: 0 0.5rem;
    border-right: 1px solid #e5e7eb;
}

body.dark-mode .toolbar-group {
    border-right-color: #374151;
}

.toolbar-group:last-child {
    border-right: none;
}

.toolbar-btn {
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: #111827;
}

body.dark-mode .toolbar-btn {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.toolbar-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

body.dark-mode .toolbar-btn:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.toolbar-select {
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #111827;
}

body.dark-mode .toolbar-select {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

/* Notepad Container */
.notepad-container { flex: 1; overflow-y: auto;
    display: flex;
}

.notepad-editor {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    outline: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: white;
    color: #111827;
}

body.dark-mode .notepad-editor {
    background: #111827;
    color: #f3f4f6;
}

.notepad-editor:focus {
    outline: none;
}

/* Status Bar */
.notepad-status-bar {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

body.dark-mode .notepad-status-bar {
    background: #1f2937;
    border-top-color: #374151;
    color: #9ca3af;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item span {
    font-weight: 600;
    color: #3b82f6;
}

body.dark-mode .status-item span {
    color: #60a5fa;
}

/* 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.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

body.dark-mode .modal-content {
    background: #1f2937;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

body.dark-mode .modal-header {
    border-bottom-color: #374151;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

body.dark-mode .modal-close {
    color: #9ca3af;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="checkbox"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

body.dark-mode .form-group input[type="text"] {
    background: #111827;
    border-color: #374151;
    color: #f3f4f6;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

body.dark-mode .modal-footer {
    border-top-color: #374151;
}

/* Emoji Modal */
.emoji-modal {
    max-width: 400px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}

.emoji-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s;
}

body.dark-mode .emoji-btn {
    background: #374151;
    border-color: #4b5563;
}

.emoji-btn:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

body.dark-mode .emoji-btn:hover {
    background: #4b5563;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

body.dark-mode .btn-secondary {
    background: #374151;
    color: #f3f4f6;
}

.btn-secondary:hover {
    background: #d1d5db;
}

body.dark-mode .btn-secondary:hover {
    background: #4b5563;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .toolbar-group {
        padding: 0 0.25rem;
        border-right: none;
    }
    
    .toolbar-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .notepad-editor {
        padding: 1rem;
        font-size: 12px;
    }
    
    .notepad-status-bar {
        gap: 1rem;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .notepad-toolbar,
    .notepad-status-bar {
        display: none;
    }
    
    body {
        height: auto;
        overflow: auto;
    }
    
    .notepad-container {
        flex: none;
        overflow: visible;
    }
    
    .notepad-editor {
        padding: 0;
        background: white;
        color: black;
    }
}


/* Tailwind-like utilities */
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-16 { margin-top: 4rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.border { border: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.transition { transition: all 0.3s ease; }
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-5 { width: 1.25rem; }
.h-8 { height: 2rem; }
.h-5 { height: 1.25rem; }
.h-16 { height: 4rem; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

/* Dark mode utilities */
body.dark-mode .dark\:bg-gray-900 { background-color: #111827; }
body.dark-mode .dark\:bg-gray-800 { background-color: #1f2937; }
body.dark-mode .dark\:bg-gray-700 { background-color: #374151; }
body.dark-mode .dark\:bg-black { background-color: #000000; }
body.dark-mode .dark\:text-white { color: #ffffff; }
body.dark-mode .dark\:text-gray-300 { color: #d1d5db; }
body.dark-mode .dark\:text-gray-400 { color: #9ca3af; }
body.dark-mode .dark\:border-gray-800 { border-color: #1f2937; }
body.dark-mode .dark\:border-gray-600 { border-color: #4b5563; }
body.dark-mode .dark\:hover\:bg-gray-800:hover { background-color: #1f2937; }

/* Responsive */
@media (max-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .sm\:text-5xl { font-size: 3rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tool Card */
.tool-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

body.dark-mode .tool-card {
    background: #1f2937;
    border-color: #374151;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

body.dark-mode .tool-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.tool-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-description {
    font-size: 0.875rem;
    color: #6b7280;
}

body.dark-mode .tool-description {
    color: #9ca3af;
}

/* Tool Page Layout */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tool-header {
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

body.dark-mode .tool-header p {
    color: #9ca3af;
}

/* Editor Area */
.editor-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .editor-wrapper {
        grid-template-columns: 1fr;
    }
}

.editor-section {
    display: flex;
    flex-direction: column;
}

.editor-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

body.dark-mode .editor-label {
    color: #9ca3af;
}

textarea, input[type="text"], input[type="file"] {
    flex: 1;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 300px;
    background: white;
    color: #111827;
}

body.dark-mode textarea,
body.dark-mode input[type="text"],
body.dark-mode input[type="file"] {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

body.dark-mode .btn-secondary {
    background: #374151;
    color: #f3f4f6;
}

.btn-secondary:hover {
    background: #d1d5db;
}

body.dark-mode .btn-secondary:hover {
    background: #4b5563;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Status Bar */
.status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

body.dark-mode .status-bar {
    background: #1f2937;
}

.status-item {
    text-align: center;
}

.status-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.status-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

body.dark-mode .status-label {
    color: #9ca3af;
}

/* Info Section */
.info-section {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

body.dark-mode .info-section {
    background: #1e3a8a;
    border-left-color: #60a5fa;
}

.info-section h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e40af;
}

body.dark-mode .info-section h3 {
    color: #93c5fd;
}

.info-section p {
    font-size: 0.875rem;
    color: #1e40af;
}

body.dark-mode .info-section p {
    color: #bfdbfe;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
}

.faq-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

body.dark-mode .faq-item {
    border-color: #374151;
}

.faq-question {
    padding: 1rem;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

body.dark-mode .faq-question {
    background: #1f2937;
}

.faq-question:hover {
    background: #f3f4f6;
}

body.dark-mode .faq-question:hover {
    background: #374151;
}

.faq-answer {
    padding: 1rem;
    background: white;
    color: #6b7280;
    display: none;
}

body.dark-mode .faq-answer {
    background: #111827;
    color: #9ca3af;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    transition: transform 0.3s;
}

.faq-toggle.active {
    transform: rotate(180deg);
}

/* Microphone Button */
.mic-button {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mic-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.mic-button.recording {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* Utility Classes */
.hidden { display: none; }
.opacity-50 { opacity: 0.5; }
.cursor-pointer { cursor: pointer; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Touch-Friendly Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Mobile/Touch Devices */
    .toolbar-btn,
    .nav-link,
    .tool-link,
    .btn,
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.6rem 0.8rem;
    }
    
    .toolbar-btn {
        font-size: 0.8rem;
    }
    
    /* Increase tap target sizes */
    .document-item {
        padding: 0.6rem 0.75rem;
        min-height: 44px;
    }
    
    .emoji-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .tool-link:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Landscape Mode (Mobile) */
@media (max-height: 500px) and (orientation: landscape) {
    .top-nav {
        padding: 0.4rem 0.75rem;
    }
    
    .notepad-toolbar {
        padding: 0.4rem;
        overflow-x: auto;
    }
    
    .toolbar-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .notepad-editor {
        padding: 0.75rem;
        font-size: 11px;
    }
    
    .notepad-status-bar {
        padding: 0.3rem 0.5rem;
        gap: 0.75rem;
        font-size: 0.65rem;
    }
}

/* Print Styles */
@media print {
    nav, footer, .btn-group, .status-bar {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    textarea {
        border: none;
        box-shadow: none;
    }
}



/* ===== NEW FEATURES STYLES ===== */

/* Search Toggle Button */
.search-toggle {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.9rem !important;
    min-width: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Global Search Bar */
.search-bar-container {
    position: relative;
    width: 200px;
    max-width: 200px;
    margin-left: 0.5rem;
    margin-right: 0;
}

.global-search-input {
    width: 100%;
    padding: 0.3rem 0.5rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #111827;
    transition: all 0.2s;
}

body.dark-mode .global-search-input {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.global-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 250px;
}

/* Search Results List (for modal) */
.search-results-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

body.dark-mode .search-results-list {
    background: #1f2937;
}

body.dark-mode .search-results-dropdown {
    background: #1f2937;
    border-color: #374151;
}

.search-header {
    padding: 0.4rem 0.5rem;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark-mode .search-header {
    background: #111827;
    border-bottom-color: #374151;
    color: #9ca3af;
}

.search-result-item {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark-mode .search-result-item {
    border-bottom-color: #374151;
}

.search-result-item:hover {
    background: #f3f4f6;
}

body.dark-mode .search-result-item:hover {
    background: #374151;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #111827;
}

body.dark-mode .search-result-title {
    color: #f3f4f6;
}

.search-result-preview {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .search-result-preview {
    color: #9ca3af;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

body.dark-mode .search-no-results {
    color: #9ca3af;
}

/* Document Tags */
.document-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.tag-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 500;
}

body.dark-mode .tag-badge {
    background: #1e3a8a;
    color: #93c5fd;
}

/* Responsive Search Bar */
@media (max-width: 768px) {
    .search-bar-container {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .global-search-input {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .search-results-dropdown {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .search-bar-container {
        display: none;
    }
}


/* Formatting Buttons */
#boldBtn strong {
    font-weight: 900;
    font-size: 1rem;
}

#italicBtn em {
    font-style: italic;
    font-size: 1rem;
}

#underlineBtn u {
    text-decoration: underline;
    font-size: 1rem;
}

#strikeBtn s {
    text-decoration: line-through;
    font-size: 1rem;
}

/* Active formatting button state */
.toolbar-btn.format-active {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

body.dark-mode .toolbar-btn.format-active {
    background: #2563eb;
    border-color: #1e40af;
}

/* Rich text editor styles */
.notepad-editor strong,
.notepad-editor b {
    font-weight: bold;
}

.notepad-editor em,
.notepad-editor i {
    font-style: italic;
}

.notepad-editor u {
    text-decoration: underline;
}

.notepad-editor s,
.notepad-editor strike {
    text-decoration: line-through;
}

.notepad-editor ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.notepad-editor ol {
    list-style-type: decimal;
    margin-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.notepad-editor li {
    margin-bottom: 0.25rem;
}


/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
}

.btn-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
}

.user-name {
    color: #667eea;
    font-weight: 600;
    padding: 0.5rem;
}
