/* 채팅 페이지 스타일 */
.page-title {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

.chat-layout {
    display: flex;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 600px;
}

.chat-sidebar {
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-list {
    height: 100%;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.chat-item:hover {
    background-color: #f9f9f9;
}

.chat-item.active {
    background-color: #e3f2fd;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.chat-preview {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.chat-partner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-partner .chat-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f5f5;
}

.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    max-width: 70%;
}

.message.received {
    align-items: flex-start;
}

.message.sent {
    align-items: flex-end;
    margin-left: auto;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.received .message-content {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.message.sent .message-content {
    background-color: #4a90e2;
    color: white;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    padding: 0 5px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #fff;
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.send-btn {
    padding: 12px 25px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.send-btn:hover {
    background-color: #357abd;
}

@media (max-width: 768px) {
    .chat-layout {
        flex-direction: column;
        height: auto;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 200px;
    }
    
    .chat-main {
        height: 500px;
    }
}

