.email-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.email-item {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.email-item:hover {
    background-color: #f8f9fa;
}

.email-item.new {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.sender {
    font-weight: bold;
    color: #495057;
}

.time {
    font-size: 0.875rem;
    color: #6c757d;
}

.subject {
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.preview {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

.email-item:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .email-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time {
        margin-top: 5px;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
}

/* Modal custom styles */
.modal-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 0.375rem;
    max-height: 400px;
    overflow-y: auto;
}
