:root {
    --primary-color: #3498db;
    --secondary-color: #f8f9fa;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
    min-height: 100vh;
    /* padding: 20px; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-container {
    /* max-width: 1200px;
    margin: 20px auto; */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border-radius: 1px;
    overflow: hidden;
    background: white;
    height: calc(100vh - 1px);
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--dark-color);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
}

.brand {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
}

.brand span:first-child {
    color: var(--primary-color);
}

.brand span:last-child {
    color: var(--success-color);
}

.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.ntpd-sidebar {
    background: var(--dark-color);
    color: white;
    width: 300px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ntpd-sidebar-header {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.note-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.note-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.note-item.active {
    background-color: var(--primary-color);
}

.note-title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.note-date {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 10px;
}

.note-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--light-color);
}

.toolbar {
    padding: 15px 20px;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.toolbar-group {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.btn-tool {
    background: white;
    border: none;
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tool:hover {
    background-color: #f0f0f0;
}

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

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

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

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

.editor-container {
    flex: 1;
    padding: 25px;
    overflow: auto;
    background: white;
}

#noteTitle {
    font-size: 32px;
    font-weight: 700;
    border: none;
    padding: 10px 15px;
    margin-bottom: 20px;
    width: 100%;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#editor {
    min-height: 400px;
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
    outline: none;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.status-bar {
    padding: 12px 25px;
    background-color: var(--dark-color);
    color: white;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.word-count {
    display: inline-block;
    min-width: 120px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #7f8c8d;
    text-align: center;
    padding: 20px;
    background: white;
}

.empty-state i {
    font-size: 80px;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.find-replace-container {
    padding: 20px;
}

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

.highlight {
    background-color: yellow;
    color: black;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    margin: 0;
    border-radius: 0;
    padding: 0;
}

.fullscreen .ntpd-sidebar {
    display: none;
}

.fullscreen .note-content-area {
    height: 100vh;
}

.fullscreen .editor-container {
    padding: 40px;
}

.fullscreen #editor {
    min-height: calc(100vh - 200px);
}

.toggle-ntpd-sidebar {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-left: 10px;
}

@media (max-width: 992px) {
    .ntpd-sidebar {
        width: 250px;
    }
    
    .toolbar {
        gap: 5px;
    }
    
    .btn-tool span {
        display: none;
    }
    
    .btn-tool i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .app-container {
        height: auto;
        min-height: calc(100vh - 40px);
    }
    
    .ntpd-sidebar {
        position: absolute;
        left: -300px;
        z-index: 1000;
        height: calc(100vh - 60px);
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
    
    .ntpd-sidebar.open {
        left: 0;
    }
    
    .toggle-ntpd-sidebar {
        display: inline-block;
    }
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-action i {
    font-size: 16px;
}