/* Modern Mesajlaşma CSS */
.wpilan-msg-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 600px;
}

.wpilan-conv-list {
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.wpilan-conv-header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.wpilan-conv-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.wpilan-conv-items {
    flex: 1;
    overflow-y: auto;
}

.wpilan-conv-item {
    display: flex !important;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none !important;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
}

.wpilan-conv-item:hover {
    background: #f0f0f0;
}

.wpilan-conv-item.active {
    background: #e3f2fd;
    border-left: 3px solid #2196F3;
}

.wpilan-conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    background: #ddd;
}

.wpilan-conv-info {
    flex: 1;
    min-width: 0;
}

.wpilan-conv-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpilan-conv-user {
    font-size: 12px;
    color: #666;
}

.wpilan-badge {
    background: #f44336;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.wpilan-msg-area {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.wpilan-msg-header {
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpilan-msg-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.wpilan-msg-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

.wpilan-msg-item {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
}

.wpilan-msg-item.mine {
    justify-content: flex-end;
}

.wpilan-msg-bubble {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.wpilan-msg-bubble.mine {
    background: #2196F3;
    color: white;
    border-bottom-right-radius: 4px;
}

.wpilan-msg-bubble.other {
    background: white;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wpilan-msg-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

.wpilan-msg-form {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
}

.wpilan-msg-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.wpilan-msg-input:focus {
    border-color: #2196F3;
}

.wpilan-msg-send {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.wpilan-msg-send:hover {
    background: #1976D2;
}

.wpilan-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .wpilan-msg-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .wpilan-conv-list {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
}