@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body { font-family: 'Inter', sans-serif; overflow: hidden; }

/* Insights report content */
#insights-result h3 { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin: 1.25rem 0 0.5rem; padding-bottom: 0.3rem; border-bottom: 1px solid #e2e8f0; }
#insights-result h3:first-child { margin-top: 0; }
#insights-result p { margin-bottom: 0.6rem; line-height: 1.65; font-size: 0.875rem; }
#insights-result ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 0.75rem; }
#insights-result li { margin-bottom: 0.3rem; line-height: 1.65; font-size: 0.875rem; }
#insights-result strong { font-weight: 600; color: #1e293b; }
#insights-result a { color: #2563eb; text-decoration: underline; }
#insights-result a:hover { color: #1d4ed8; }
.glass { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); }
.card-enter { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

#context-menu {
    display: none; position: fixed; z-index: 1000; width: 220px;
    background: white; border-radius: 12px; border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); padding: 6px;
}
.context-menu-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    font-size: 13px; font-weight: 500; color: #475569; border-radius: 8px;
    cursor: pointer; transition: all 0.2s;
}
.context-menu-item:hover { background-color: #f1f5f9; color: #2563eb; }

.sidebar-item-active { background: #eff6ff; color: #2563eb; font-weight: 700; border-right: 3px solid #2563eb; }
.tab-active { color: #2563eb; border-bottom: 2px solid #2563eb; }
.line-clamp-5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.modal-overlay { background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); transition: opacity 0.3s ease; }

.status-completed { text-decoration: line-through; opacity: 0.6; }
.reply-badge { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; cursor: help; }
.recipient-badge-to { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.recipient-badge-cc { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.attachment-icon { color: #94a3b8; cursor: help; }

/* Drag and Drop Styles */
.task-column.drag-over { 
    background: #dbeafe !important; 
    border: 2px dashed #2563eb !important; 
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Sidebar Responsive Styles */
#sidebar.sidebar-open { transform: translateX(0); }

#sidebar-overlay.sidebar-open { display: block !important; }

@media (min-width: 768px) {
    #sidebar {
        position: relative !important;
        transform: translateX(0) !important;
    }
    #sidebar-overlay {
        display: none !important;
    }
}