/* AI Email Assistant - Main Stylesheet */

body {
    background-color: #f8f9fa;
}

.task-item {
    transition: all 0.3s ease;
}

.task-item:hover {
    background-color: #f1f3f5;
}

.task-completed {
    opacity: 0.6;
}

.task-completed .task-title {
    text-decoration: line-through;
}

.overdue {
    border-left: 3px solid #dc3545;
}

.upcoming {
    border-left: 3px solid #ffc107;
}

.badge-source {
    font-size: 0.7rem;
}

.stats-card {
    border-left: 4px solid;
}

.loading {
    display: none;
}

.loading.active {
    display: inline-block;
}

/* AI Chat Interface */
.chat-container {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #fff;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.chat-message.user {
    background-color: #e7f3ff;
    margin-left: 2rem;
    text-align: right;
}

.chat-message.assistant {
    background-color: #f8f9fa;
    margin-right: 2rem;
}

.chat-message.system {
    background-color: #fff3cd;
    text-align: center;
    font-style: italic;
}

.chat-input-container {
    position: relative;
}

.chat-input-container textarea {
    padding-right: 50px;
}

.chat-send-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

#chatInput.voice-listening {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}