/* Expert Consultation Styles */

/* Message container */
.consultation-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Message bubbles - specific to consultation messages */
.consultation-messages .message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.consultation-messages .user-message {
    background-color: #dcf8c6;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.consultation-messages .expert-message {
    background-color: #ffffff;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Message metadata */
.consultation-messages .message-time {
    font-size: 0.7rem;
    color: #777;
    text-align: right;
    margin-top: 5px;
}

/* Status badges */
.status-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 10px;
}

.status-open {
    background-color: #d4edda;
    color: #155724;
}

.status-closed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Consultation list hover effect */
.consultation-item {
    transition: all 0.3s ease;
}

.consultation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Message form */
.message-form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

/* Unread message indicator */
.unread-indicator {
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

/* All titles and headers in consultation pages should be left-aligned */
h1, h2, h3, h4, h5, h6 {
    text-align: left !important;
}

h2::after {
    margin: 15px 0 !important;
}