/* Message Doctor Page Styles */
.message-hero {
    background: linear-gradient(rgba(66, 153, 225, 0.1), rgba(66, 153, 225, 0.2));
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.message-hero h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.message-hero p {
    color: var(--text-light);
    font-size: 18px;
}

/* Doctors List Styles */
.doctors-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.search-box {
    padding: 20px;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.search-box input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.doctor-cards {
    overflow-y: auto;
    padding: 15px;
}

.doctor-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctor-card:hover,
.doctor-card.active {
    background: #f7fafc;
}

.doctor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.doctor-info h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

.doctor-info p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--text-light);
}

.badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
}

.badge.online {
    background: #48bb78;
    color: white;
}

.badge.offline {
    background: #a0aec0;
    color: white;
}

/* Message Area Styles */
.message-area {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.message-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-doctor {
    display: flex;
    align-items: center;
}

.doctor-status h3 {
    margin: 0;
    font-size: 18px;
}

.doctor-status p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--text-light);
}

.message-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f7fafc;
    color: var(--primary-color);
}

.message-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.message {
    margin-bottom: 20px;
    display: flex;
}

.message.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 20px;
    border-radius: 20px;
    position: relative;
}

.message.received .message-bubble {
    background: white;
    border: 1px solid #e2e8f0;
}

.message.sent .message-bubble {
    background: var(--primary-color);
    color: white;
}

.time {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    display: block;
}

.message.sent .time {
    color: rgba(255, 255, 255, 0.8);
}

.message-input {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
}

.attach-btn,
.send-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.send-btn {
    background: var(--primary-color);
    color: white;
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.input-features {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.feature-btn {
    background: none;
    border: none;
    padding: 8px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.feature-btn:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .doctors-list {
        margin-bottom: 30px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .message-hero {
        padding: 40px 0;
    }

    .message-hero h1 {
        font-size: 28px;
    }

    .message-actions {
        display: none;
    }

    .message-bubble {
        max-width: 85%;
    }
}