/* Online Notes Specific UI */

.on-workspace { 
    max-width: 900px !important; 
    padding: 0 !important; 
    overflow: hidden;
}

.on-editor-container {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 24px;
}

/* Header Area */
.on-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.on-stat-group {
    display: flex;
    gap: 10px;
}

.on-status {
    font-size: 0.9rem;
    font-weight: 700;
}

.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }

/* Textarea Area */
.on-body {
    padding: 30px;
    background: var(--bg-card);
}

.on-textarea {
    width: 100%;
    min-height: 450px;
    border: none;
    resize: vertical;
    outline: none;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    background: transparent;
    font-family: inherit;
}

.on-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Footer Action Bar & Button Specifics */
.on-footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.btn-flex { flex: 1; }
.btn-flex-half { flex: 0.5; }

.btn-danger-outline {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger-outline:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.btn-danger-solid {
    background: #ef4444 !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25) !important;
}

.btn-danger-solid:hover {
    background: #dc2626 !important;
}

/* ==========================================
   CUSTOM MODAL UI (Professional Popup)
   ========================================== */
.rt-custom-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 1; transition: opacity 0.3s ease;
}

.rt-custom-modal.hidden { 
    display: none !important; opacity: 0; 
}

.rt-modal-content {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; width: 90%; max-width: 400px;
    padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-align: center;
}

@keyframes slideDown { 
    from { transform: translateY(-30px) scale(0.95); opacity: 0; } 
    to { transform: translateY(0) scale(1); opacity: 1; } 
}

.rt-modal-icon {
    width: 70px; height: 70px; background: rgba(239, 68, 68, 0.1);
    color: #ef4444; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 2rem; margin: 0 auto 15px auto;
}

.rt-modal-header h3 { 
    font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 10px; 
}

.rt-modal-body p { 
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; 
}

.rt-modal-footer { display: flex; gap: 15px; }
.rt-modal-footer button { flex: 1; padding: 14px; font-size: 1rem; border-radius: 12px; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .on-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 15px 20px;
    }
    .on-body {
        padding: 20px;
    }
    .on-textarea {
        min-height: 350px;
        font-size: 1.05rem;
    }
    .on-footer {
        flex-direction: column;
        padding: 20px;
    }
    .on-footer button {
        width: 100%;
    }
}
